Class YVRCompositeLayer
Used to represent composite layer, which contains overlay / underlay
public class YVRCompositeLayer : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourYVRCompositeLayer
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Fields
- autoInitLayer
Should init native composite layer automatically
- compositionDepth
Composite layer depth. If depth less-than 0, the layer will work as underLayer, otherwise, the layer will works as overlay
- isDynamic
Render content is dynamic If the content you are rendering is dynamic, set this value to true, otherwise the rendered image will remain static even if the data content is updated. This is done to reduce the performance cost of static page rendering.
- renderScale
Render scale for composite layer resolution. While render scale is 1.0, composite layer resolution will equal to the resolution of [texture](xref: YVR.Core.YVRCompositeLayer.texture)
- rightEyeTexture
The displayed texture on right eye composite layer, textureLeft will be used for both eye;
- texture
The displayed texture on composite layer
Properties
- height
The height of the actual texture used in the compositeLayer if texture type is external texture, the size of the texture is controlled by the producer and possibly changes at any time the texture height set to 100 is just for source rect calculate
- renderLayerId
The mask id of render layer
- textureHandle
ID of the texture
- width
The width of the actual texture used in the compositeLayer if texture type is external texture, the size of the texture is controlled by the producer and possibly changes at any time the texture width set to 100 is just for source rect calculate
Methods
- Hide()
Hide the composite layer
- InitCompositeLayer(int)
Init native composite layer, register composite layer update operations.
- SetLayerDepth(int)
Set the render depth of the composite layer
- Show()
Show the composite layer