Class YVRCompositeLayer
Used to represent composite layer, which contains overlay / underlay
Namespace: YVR.Core
Assembly: YVR.Core.Runtime.dll
Syntax
public class YVRCompositeLayer : MonoBehaviour
Fields
Name | Description |
---|---|
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 | Used to represent composite layer, which contains overlay / underlay |
destRectRight | Used to represent composite layer, which contains overlay / underlay |
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 | Used to represent composite layer, which contains overlay / underlay |
layerHandler | Used to represent composite layer, which contains overlay / underlay |
m_CircleSegments | Used to represent composite layer, which contains overlay / underlay |
m_CylinderAngle | Used to represent composite layer, which contains overlay / underlay |
m_Radius | Used to represent composite layer, which contains overlay / underlay |
m_Shape | Used to represent composite layer, which contains overlay / underlay |
m_SharpenType | Used to represent composite layer, which contains overlay / underlay |
m_SuperSamplingType | Used to represent composite layer, which contains overlay / underlay |
onLayerAddedGfx | Used to represent composite layer, which contains overlay / underlay |
onLayerCreatedGfx | Used to represent composite layer, which contains overlay / underlay |
onLayerDepthSetGfx | Used to represent composite layer, which contains overlay / underlay |
onLayerDestroyedGfx | Used to represent composite layer, which contains overlay / underlay |
onLayerRemovedGfx | Used to represent composite layer, which contains overlay / underlay |
onRegenerateHole | Used to represent composite layer, which contains overlay / underlay |
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 | Used to represent composite layer, which contains overlay / underlay |
sourceRectRight | Used to represent composite layer, which contains overlay / underlay |
texture | The displayed texture on composite layer |
Properties
Name | Description |
---|---|
DestRectLeft | Used to represent composite layer, which contains overlay / underlay |
DestRectRight | Used to represent composite layer, which contains overlay / underlay |
SharpenType | Used to represent composite layer, which contains overlay / underlay |
SourceRectLeft | Used to represent composite layer, which contains overlay / underlay |
SourceRectRight | Used to represent composite layer, which contains overlay / underlay |
SuperSamplingType | Used to represent composite layer, which contains overlay / underlay |
alpha | Used to represent composite layer, which contains overlay / underlay |
circleSegments | Used to represent composite layer, which contains overlay / underlay |
cylinderAngle | Used to represent composite layer, which contains overlay / underlay |
depth | Used to represent composite layer, which contains overlay / underlay |
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 | Used to represent composite layer, which contains overlay / underlay |
renderLayerId | The mask id of render layer |
rightEyeRenderLayerId | Used to represent composite layer, which contains overlay / underlay |
rightEyeTextureHandle | Used to represent composite layer, which contains overlay / underlay |
shape | Used to represent composite layer, which contains overlay / underlay |
swapChainBufferCount | Used to represent composite layer, which contains overlay / underlay |
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
Name | Description |
---|---|
ApplyLayerSettings() | Used to represent composite layer, which contains overlay / underlay |
CopyTextureToColorHandle() | Used to represent composite layer, which contains overlay / underlay |
GetExternalAndroidSurface() | Used to represent composite layer, which contains overlay / underlay |
Hide() | Hide the composite layer |
InitCompositeLayer(int) | Init native composite layer, register composite layer update operations. |
LateUpdate() | Used to represent composite layer, which contains overlay / underlay |
OnDestroy() | Used to represent composite layer, which contains overlay / underlay |
OnDisable() | Used to represent composite layer, which contains overlay / underlay |
OnEnable() | Used to represent composite layer, which contains overlay / underlay |
OnLayerAddedGfx() | Used to represent composite layer, which contains overlay / underlay |
OnLayerCreatedGfx(int, int) | Used to represent composite layer, which contains overlay / underlay |
OnLayerDepthSetGfx(bool) | Used to represent composite layer, which contains overlay / underlay |
OnLayerDestroyedGfx() | Used to represent composite layer, which contains overlay / underlay |
OnLayerRemovedGfx() | Used to represent composite layer, which contains overlay / underlay |
RecreateLayer() | Used to represent composite layer, which contains overlay / underlay |
RecreateLayer(int) | Used to represent composite layer, which contains overlay / underlay |
RecreateLayer(int, bool) | Used to represent composite layer, which contains overlay / underlay |
SetLayerDepth(int) | Set the render depth of the composite layer |
SetSurfaceDimensions(int, int) | Used to represent composite layer, which contains overlay / underlay |
SetTexture(Texture, int) | Used to represent composite layer, which contains overlay / underlay |
SetTexture(Texture, YVRRenderLayerEyeMask, int) | Used to represent composite layer, which contains overlay / underlay |
Show() | Show the composite layer |
SwapBufferLayer() | Used to represent composite layer, which contains overlay / underlay |
UpdateCommandBuffer() | Used to represent composite layer, which contains overlay / underlay |
UpdateCommandBufferMainThread(CommandBuffer) | Used to represent composite layer, which contains overlay / underlay |
UpdateCompositeLayerContent() | Used to represent composite layer, which contains overlay / underlay |