frameIndex
: int |
Signature
int frameIndex |
isOverridePending
: bool |
Signature
bool isOverridePending |
layerDesc
: OVRPlugin.LayerDesc |
Signature
OVRPlugin.LayerDesc layerDesc |
layerIdHandle
: GCHandle |
Signature
GCHandle layerIdHandle |
layerIdPtr
: IntPtr |
Signature
IntPtr layerIdPtr |
layerTextures
: LayerTexture[] |
Signature
LayerTexture [] layerTextures |
prevFrameIndex
: int |
Signature
int prevFrameIndex |
rend
: Renderer |
Signature
Renderer rend |
stageCount
: int |
Signature
int stageCount |
texturePtrs
: IntPtr[] |
Signature
IntPtr [] texturePtrs |
colorOffset
: Vector4 |
Signature
Vector4 colorOffset |
colorScale
: Vector4 |
Signature
Vector4 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 compositionDepth |
currentOverlayShape
: OverlayShape |
Specify overlay's shape.
Signature
OverlayShape currentOverlayShape |
currentOverlayType
: OverlayType |
Specify overlay's type.
Signature
OverlayType currentOverlayType |
destRectLeft
: Rect |
Signature
Rect destRectLeft |
destRectRight
: Rect |
Signature
Rect destRectRight |
externalSurfaceHeight
: int |
The height which will be used to create the external surface.
It's effective only on Android.
Signature
int externalSurfaceHeight |
externalSurfaceObject
: System.IntPtr |
The Surface object (Android only).
Signature
System.IntPtr externalSurfaceObject |
externalSurfaceObjectCreated
: ExternalSurfaceObjectCreated |
Will be triggered after externalSurfaceTextueObject get created.
Signature
ExternalSurfaceObjectCreated externalSurfaceObjectCreated |
externalSurfaceWidth
: int |
The width which will be used to create the external surface.
It's effective only on Android.
Signature
int externalSurfaceWidth |
hidden
: bool |
Signature
bool hidden |
invertTextureRects
: bool |
Signature
bool invertTextureRects |
isAlphaPremultiplied
: bool |
Signature
bool isAlphaPremultiplied |
isDynamic
: bool |
If true, the texture's content is copied to the compositor each frame.
Signature
bool 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 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 isProtectedContent |
layerTextureFormat
: OVRPlugin.EyeTextureFormat |
Signature
OVRPlugin.EyeTextureFormat 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 noDepthBufferTesting |
overridePerLayerColorScaleAndOffset
: bool |
Signature
bool overridePerLayerColorScaleAndOffset |
overrideTextureRectMatrix
: bool |
Signature
bool overrideTextureRectMatrix |
srcRectLeft
: Rect |
Signature
Rect srcRectLeft |
srcRectRight
: Rect |
Signature
Rect srcRectRight |
textures
: Texture[] |
The left- and right-eye Textures to show in the layer.
Signature
Texture [] textures |
useAutomaticFiltering
: bool |
Signature
bool useAutomaticFiltering |
useBicubicFiltering
: bool |
Signature
bool useBicubicFiltering |
useEfficientSharpen
: bool |
Signature
bool useEfficientSharpen |
useEfficientSupersample
: bool |
Signature
bool useEfficientSupersample |
useExpensiveSharpen
: bool |
Signature
bool useExpensiveSharpen |
useExpensiveSuperSample
: bool |
Signature
bool useExpensiveSuperSample |
useLegacyCubemapRotation
: bool |
Signature
bool useLegacyCubemapRotation |
cubeMaterial
: readonly Material[] |
Signature
readonly Material [] cubeMaterial |
tex2DMaterial
: Material |
Signature
Material tex2DMaterial |
instances
: List< OVROverlay > |
Signature
List<OVROverlay> instances |
layout
: OVRPlugin.LayerLayout
[Get] |
Signature
OVRPlugin.LayerLayout layout |
texturesPerStage
: int
[Get] |
Signature
int texturesPerStage |
isOverlayVisible
: bool
[Get] |
Signature
bool isOverlayVisible |
layerId
: int
[Get] |
Signature
int layerId |
layerIndex
: int
[Get] |
Signature
int layerIndex |
OpenVROverlayKey
: string
[Get] |
Signature
string OpenVROverlayKey |
previewInEditor
: bool
[Get][Set] |
Preview the overlay in the editor using a mesh renderer.
Signature
bool previewInEditor |
BlitSubImage
(
src
, width
, height
, mat
, rect
)
|
Signature
void BlitSubImage(Texture src, int width, int height, Material mat, Rect rect) Parameters src: Texturewidth: intheight: intmat: Materialrect: RectReturns void |
CreateLayer
(
mipLevels
, sampleCount
, etFormat
, flags
, size
, shape
)
|
Signature
bool 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 CreateLayerTextures(bool useMipmaps, OVRPlugin.Sizei size, bool isHdr) Parameters useMipmaps: boolsize: OVRPlugin.SizeiisHdr: boolReturns bool |
DestroyLayer
()
|
Signature
void DestroyLayer() Returns void |
DestroyLayerTextures
()
|
Signature
void DestroyLayerTextures() Returns void |
GetBlitRect
(
eyeId
, width
, height
, invertRect
)
|
Signature
Rect GetBlitRect(int eyeId, int width, int height, bool invertRect) Parameters eyeId: intwidth: intheight: intinvertRect: boolReturns Rect |
GetCurrentLayerDesc
()
|
Signature
OVRPlugin.LayerDesc GetCurrentLayerDesc() Returns OVRPlugin.LayerDesc |
LatchLayerTextures
()
|
Signature
bool LatchLayerTextures() Returns bool |
PopulateLayer
(
mipLevels
, isHdr
, size
, sampleCount
, stage
)
|
Signature
bool PopulateLayer(int mipLevels, bool isHdr, OVRPlugin.Sizei size, int sampleCount, int stage) Parameters mipLevels: intisHdr: boolsize: OVRPlugin.SizeisampleCount: intstage: intReturns bool |
SetupEditorPreview
()
|
Signature
void SetupEditorPreview() Returns void |
SubmitLayer
(
overlay
, headLocked
, noDepthBufferTesting
, pose
, scale
, frameIndex
)
|
Signature
bool SubmitLayer(bool overlay, bool headLocked, bool noDepthBufferTesting, OVRPose pose, Vector3 scale, int frameIndex) Parameters Returns bool |
ExternalSurfaceObjectCreated
()
|
Signature
delegate void 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 OverrideOverlayTextureInfo(Texture srcTexture, IntPtr nativePtr, UnityEngine.XR.XRNode node) Parameters srcTexture: TexturenativePtr: IntPtrnode: UnityEngine.XR.XRNodeReturns void |
ResetEditorPreview
()
|
Signature
void ResetEditorPreview() Returns void |
SetPerLayerColorScaleAndOffset
(
scale
, offset
)
|
Signature
void 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 SetSrcDestRects(Rect srcLeft, Rect srcRight, Rect destLeft, Rect destRight) Parameters srcLeft: RectsrcRight: RectdestLeft: RectdestRight: RectReturns void |
UpdateTextureRectMatrix
()
|
Signature
void UpdateTextureRectMatrix() Returns void |
NeedsTexturesForShape
(
shape
)
|
Signature
static bool NeedsTexturesForShape(OverlayShape shape) Parameters shape: OverlayShapeReturns bool |
IsPassthroughShape
(
shape
)
|
Signature
static bool IsPassthroughShape(OverlayShape shape) Parameters shape: OverlayShapeReturns bool |
appTexture
: Texture |
Signature
Texture appTexture |
appTexturePtr
: IntPtr |
Signature
IntPtr appTexturePtr |
swapChain
: Texture[] |
Signature
Texture [] swapChain |
swapChainPtr
: IntPtr[] |
Signature
IntPtr [] swapChainPtr |
| Member | Value |
|---|---|
Quad | OVRPlugin.OverlayShape.Quad |
Cylinder | OVRPlugin.OverlayShape.Cylinder |
Cubemap | OVRPlugin.OverlayShape.Cubemap |
OffcenterCubemap | OVRPlugin.OverlayShape.OffcenterCubemap |
Equirect | OVRPlugin.OverlayShape.Equirect |
ScaledEquirect | OVRPlugin.OverlayShape.ScaledEquirect |
ReconstructionPassthrough | OVRPlugin.OverlayShape.ReconstructionPassthrough |
SurfaceProjectedPassthrough | OVRPlugin.OverlayShape.SurfaceProjectedPassthrough |
Fisheye | OVRPlugin.OverlayShape.Fisheye |
KeyboardHandsPassthrough | OVRPlugin.OverlayShape.KeyboardHandsPassthrough |
KeyboardMaskedHandsPassthrough | OVRPlugin.OverlayShape.KeyboardMaskedHandsPassthrough |
| Member |
|---|
None |
Underlay |
Overlay |