Class XRPassthroughSurfaceMeshComponent
This component is responsible to create a XR Passthrough surface object.
Inheritance
XRPassthroughSurfaceMeshComponent
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class XRPassthroughSurfaceMeshComponent : Component, IDependencyObject
Properties
PassthroughLayerEntityPath
Gets or sets the entity path of an entity that contains the passthrough layer.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = XRPassthroughSurfaceSearchType.Scene)]
public string PassthroughLayerEntityPath { get; set; }
Property Value
Type | Description |
---|---|
string |
SearchPassthroughLayer
Gets or sets how to search the passthrough layer.
Declaration
[RenderProperty(Tag = 1)]
public XRPassthroughSurfaceSearchType SearchPassthroughLayer { get; set; }
Property Value
Type | Description |
---|---|
XRPassthroughSurfaceSearchType |
SurfaceMeshes
Gets the collection of surface meshes.
Declaration
public IEnumerable<XRPassthroughSurfaceMesh> SurfaceMeshes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<XRPassthroughSurfaceMesh> |
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
Start()
Invoked to start the object.
Declaration
protected override void Start()