frameIndex
: int |
Signature
int OVROverlay.frameIndex |
isOverridePending
: bool |
Signature
bool OVROverlay.isOverridePending |
layerDesc
: OVRPlugin.LayerDesc |
Signature
OVRPlugin.LayerDesc OVROverlay.layerDesc |
layerIdHandle
: GCHandle |
Signature
GCHandle OVROverlay.layerIdHandle |
layerIdPtr
: IntPtr |
Signature
IntPtr OVROverlay.layerIdPtr |
layerIndex
: int |
Signature
int OVROverlay.layerIndex |
layerTextures
: LayerTexture[] |
Signature
LayerTexture [] OVROverlay.layerTextures |
prevFrameIndex
: int |
Signature
int OVROverlay.prevFrameIndex |
rend
: Renderer |
Signature
Renderer OVROverlay.rend |
stageCount
: int |
Signature
int OVROverlay.stageCount |
texturePtrs
: IntPtr[] |
Signature
IntPtr [] OVROverlay.texturePtrs |
colorOffset
: Vector4 |
Signature
Vector4 OVROverlay.colorOffset |
colorScale
: Vector4 |
Signature
Vector4 OVROverlay.colorScale |
compositionDepth
: int |
The compositionDepth defines the order of the OVROverlays in composition.
The overlay/underlay with smaller compositionDepth would be composited in the front of the overlay/underlay with larger compositionDepth.
Signature
int OVROverlay.compositionDepth |
currentOverlayShape
: OverlayShape |
Specify overlay's shape.
Signature
OverlayShape OVROverlay.currentOverlayShape |
currentOverlayType
: OverlayType |
Specify overlay's type.
Signature
OverlayType OVROverlay.currentOverlayType |
destRectLeft
: Rect |
Signature
Rect OVROverlay.destRectLeft |
destRectRight
: Rect |
Signature
Rect OVROverlay.destRectRight |
externalSurfaceHeight
: int |
The height which will be used to create the external surface.
It's effective only on Android.
Signature
int OVROverlay.externalSurfaceHeight |
externalSurfaceObject
: System.IntPtr |
The Surface object (Android only).
Signature
System.IntPtr OVROverlay.externalSurfaceObject |
externalSurfaceObjectCreated
: ExternalSurfaceObjectCreated |
Will be triggered after externalSurfaceTextueObject get created.
Signature
ExternalSurfaceObjectCreated OVROverlay.externalSurfaceObjectCreated |
externalSurfaceWidth
: int |
The width which will be used to create the external surface.
It's effective only on Android.
Signature
int OVROverlay.externalSurfaceWidth |
hidden
: bool |
Signature
bool OVROverlay.hidden |
invertTextureRects
: bool |
Signature
bool OVROverlay.invertTextureRects |
isAlphaPremultiplied
: bool |
Signature
bool OVROverlay.isAlphaPremultiplied |
isDynamic
: bool |
If true, the texture's content is copied to the compositor each frame.
Signature
bool OVROverlay.isDynamic |
isExternalSurface
: bool |
If true, the layer will be created as an external surface.
externalSurfaceObject contains the Surface object. It's effective only on Android.
Signature
bool OVROverlay.isExternalSurface |
isProtectedContent
: bool |
If true, the layer would be used to present protected content (e.g.
HDCP), the content won't be shown in screenshots or recordings.
Signature
bool OVROverlay.isProtectedContent |
layerTextureFormat
: OVRPlugin.EyeTextureFormat |
Signature
OVRPlugin.EyeTextureFormat OVROverlay.layerTextureFormat |
noDepthBufferTesting
: bool |
The noDepthBufferTesting will stop layer's depth buffer compositing even if the engine has "Depth buffer sharing" enabled on Rift.
Signature
bool OVROverlay.noDepthBufferTesting |
overridePerLayerColorScaleAndOffset
: bool |
Signature
bool OVROverlay.overridePerLayerColorScaleAndOffset |
overrideTextureRectMatrix
: bool |
Signature
bool OVROverlay.overrideTextureRectMatrix |
srcRectLeft
: Rect |
Signature
Rect OVROverlay.srcRectLeft |
srcRectRight
: Rect |
Signature
Rect OVROverlay.srcRectRight |
textures
: Texture[] |
The left- and right-eye Textures to show in the layer.
Signature
Texture [] OVROverlay.textures |
useAutomaticFiltering
: bool |
Signature
bool OVROverlay.useAutomaticFiltering |
useBicubicFiltering
: bool |
Signature
bool OVROverlay.useBicubicFiltering |
useEfficientSharpen
: bool |
Signature
bool OVROverlay.useEfficientSharpen |
useEfficientSupersample
: bool |
Signature
bool OVROverlay.useEfficientSupersample |
useExpensiveSharpen
: bool |
Signature
bool OVROverlay.useExpensiveSharpen |
useExpensiveSuperSample
: bool |
Signature
bool OVROverlay.useExpensiveSuperSample |
useLegacyCubemapRotation
: bool |
Signature
bool OVROverlay.useLegacyCubemapRotation |
cubeMaterial
: Material |
Signature
Material OVROverlay.cubeMaterial |
tex2DMaterial
: Material |
Signature
Material OVROverlay.tex2DMaterial |
instances
: OVROverlay[] |
Signature
OVROverlay [] OVROverlay.instances |
layout
: OVRPlugin.LayerLayout
[Get] |
Signature
OVRPlugin.LayerLayout OVROverlay.layout |
texturesPerStage
: int
[Get] |
Signature
int OVROverlay.texturesPerStage |
isOverlayVisible
: bool
[Get] |
Signature
bool OVROverlay.isOverlayVisible |
layerId
: int
[Get] |
Signature
int OVROverlay.layerId |
OpenVROverlayKey
: string
[Get] |
Signature
string OVROverlay.OpenVROverlayKey |
previewInEditor
: bool
[Get][Set] |
Preview the overlay in the editor using a mesh renderer.
Signature
bool OVROverlay.previewInEditor |
BlitSubImage
(
src
, dst
, mat
, rect
, invertRect
)
|
Signature
void OVROverlay.BlitSubImage(Texture src, RenderTexture dst, Material mat, Rect rect, bool invertRect=false) Parameters src: Texturedst: RenderTexturemat: Materialrect: RectinvertRect: boolReturns void |
CreateLayer
(
mipLevels
, sampleCount
, etFormat
, flags
, size
, shape
)
|
Signature
bool OVROverlay.CreateLayer(int mipLevels, int sampleCount, OVRPlugin.EyeTextureFormat etFormat, int flags, OVRPlugin.Sizei size, OVRPlugin.OverlayShape shape) Parameters mipLevels: intsampleCount: intetFormat: OVRPlugin.EyeTextureFormatflags: intsize: OVRPlugin.Sizeishape: OVRPlugin.OverlayShapeReturns bool |
CreateLayerTextures
(
useMipmaps
, size
, isHdr
)
|
Signature
bool OVROverlay.CreateLayerTextures(bool useMipmaps, OVRPlugin.Sizei size, bool isHdr) Parameters useMipmaps: boolsize: OVRPlugin.SizeiisHdr: boolReturns bool |
DestroyLayer
()
|
Signature
void OVROverlay.DestroyLayer() Returns void |
DestroyLayerTextures
()
|
Signature
void OVROverlay.DestroyLayerTextures() Returns void |
GetBlitRect
(
eyeId
)
|
Signature
Rect OVROverlay.GetBlitRect(int eyeId) Parameters eyeId: intReturns Rect |
GetCurrentLayerDesc
()
|
Signature
OVRPlugin.LayerDesc OVROverlay.GetCurrentLayerDesc() Returns OVRPlugin.LayerDesc |
LatchLayerTextures
()
|
Signature
bool OVROverlay.LatchLayerTextures() Returns bool |
PopulateLayer
(
mipLevels
, isHdr
, size
, sampleCount
, stage
)
|
Signature
bool OVROverlay.PopulateLayer(int mipLevels, bool isHdr, OVRPlugin.Sizei size, int sampleCount, int stage) Parameters mipLevels: intisHdr: boolsize: OVRPlugin.SizeisampleCount: intstage: intReturns bool |
SetupEditorPreview
()
|
Signature
void OVROverlay.SetupEditorPreview() Returns void |
SubmitLayer
(
overlay
, headLocked
, noDepthBufferTesting
, pose
, scale
, frameIndex
)
|
Signature
bool OVROverlay.SubmitLayer(bool overlay, bool headLocked, bool noDepthBufferTesting, OVRPose pose, Vector3 scale, int frameIndex) Parameters Returns bool |
ExternalSurfaceObjectCreated
()
|
Signature
delegate void OVROverlay.ExternalSurfaceObjectCreated() Returns delegate void |
OverrideOverlayTextureInfo
(
srcTexture
, nativePtr
, node
)
|
Use this function to set texture and texNativePtr when app is running GetNativeTexturePtr is a slow behavior, the value should be pre-cached.
Signature
void OVROverlay.OverrideOverlayTextureInfo(Texture srcTexture, IntPtr nativePtr, UnityEngine.XR.XRNode node) Parameters srcTexture: TexturenativePtr: IntPtrnode: UnityEngine.XR.XRNodeReturns void |
ResetEditorPreview
()
|
Signature
void OVROverlay.ResetEditorPreview() Returns void |
SetPerLayerColorScaleAndOffset
(
scale
, offset
)
|
Signature
void OVROverlay.SetPerLayerColorScaleAndOffset(Vector4 scale, Vector4 offset) Parameters scale: Vector4offset: Vector4Returns void |
SetSrcDestRects
(
srcLeft
, srcRight
, destLeft
, destRight
)
|
Sets the source and dest rects for both eyes.
Source explains what portion of the source texture is used, and dest is what portion of the destination texture is rendered into.
Signature
void OVROverlay.SetSrcDestRects(Rect srcLeft, Rect srcRight, Rect destLeft, Rect destRight) Parameters srcLeft: RectsrcRight: RectdestLeft: RectdestRight: RectReturns void |
UpdateTextureRectMatrix
()
|
Signature
void OVROverlay.UpdateTextureRectMatrix() Returns void |
NeedsTexturesForShape
(
shape
)
|
Signature
static bool OVROverlay.NeedsTexturesForShape(OverlayShape shape) Parameters shape: OverlayShapeReturns bool |
IsPassthroughShape
(
shape
)
|
Signature
static bool OVROverlay.IsPassthroughShape(OverlayShape shape) Parameters shape: OverlayShapeReturns bool |
appTexture
: Texture |
Signature
Texture OVROverlay.LayerTexture.appTexture |
appTexturePtr
: IntPtr |
Signature
IntPtr OVROverlay.LayerTexture.appTexturePtr |
swapChain
: Texture[] |
Signature
Texture [] OVROverlay.LayerTexture.swapChain |
swapChainPtr
: IntPtr[] |
Signature
IntPtr [] OVROverlay.LayerTexture.swapChainPtr |
| Member | Value |
|---|---|
Quad | OVRPlugin.OverlayShape.Quad |
Cylinder | OVRPlugin.OverlayShape.Cylinder |
Cubemap | OVRPlugin.OverlayShape.Cubemap |
OffcenterCubemap | OVRPlugin.OverlayShape.OffcenterCubemap |
Equirect | OVRPlugin.OverlayShape.Equirect |
ReconstructionPassthrough | OVRPlugin.OverlayShape.ReconstructionPassthrough |
SurfaceProjectedPassthrough | OVRPlugin.OverlayShape.SurfaceProjectedPassthrough |
Fisheye | OVRPlugin.OverlayShape.Fisheye |
KeyboardHandsPassthrough | OVRPlugin.OverlayShape.KeyboardHandsPassthrough |
KeyboardMaskedHandsPassthrough | OVRPlugin.OverlayShape.KeyboardMaskedHandsPassthrough |
| Member |
|---|
None |
Underlay |
Overlay |