Table of Contents

Class YVRCompositeLayer

Namespace
YVR.Core
Assembly
YVR.Core.Runtime.dll

Used to represent composite layer, which contains overlay / underlay

public class YVRCompositeLayer : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
YVRCompositeLayer
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.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.name
Object.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

destRectLeft
destRectRight
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.

isExternalTexture
layerHandler
m_CircleSegments
m_CylinderAngle
m_Radius
m_Shape
m_SharpenType
m_SuperSamplingType
onLayerAddedGfx
onLayerCreatedGfx
onLayerDepthSetGfx
onLayerDestroyedGfx
onLayerRemovedGfx
onRegenerateHole
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;

sourceRectLeft
sourceRectRight
texture

The displayed texture on composite layer

Properties

DestRectLeft
DestRectRight
SharpenType
SourceRectLeft
SourceRectRight
SuperSamplingType
alpha
circleSegments
cylinderAngle
depth
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

radius
renderLayerId

The mask id of render layer

rightEyeRenderLayerId
rightEyeTextureHandle
shape
swapChainBufferCount
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

ApplyLayerSettings()
CopyTextureToColorHandle()
GetExternalAndroidSurface()
Hide()

Hide the composite layer

InitCompositeLayer(int)

Init native composite layer, register composite layer update operations.

LateUpdate()
OnDestroy()
OnDisable()
OnEnable()
OnLayerAddedGfx()
OnLayerCreatedGfx(int, int)
OnLayerDepthSetGfx(bool)
OnLayerDestroyedGfx()
OnLayerRemovedGfx()
RecreateLayer()
RecreateLayer(int)
RecreateLayer(int, bool)
SetLayerDepth(int)

Set the render depth of the composite layer

SetSurfaceDimensions(int, int)
SetTexture(Texture, int)
SetTexture(Texture, YVRRenderLayerEyeMask, int)
Show()

Show the composite layer

SwapBufferLayer()
UpdateCommandBuffer()
UpdateCommandBufferMainThread(CommandBuffer)
UpdateCompositeLayerContent()