Struct AROcclusionSourceEventArgs
Arguments AROcclusionSourceEventArgs that are passed along event when occlusion source was set;
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public struct AROcclusionSourceEventArgs
Constructors
AROcclusionSourceEventArgs(AROcclusionSources, Material)
Constructor invoked by the ARShaderOcclusion which triggered the event.
Declaration
public AROcclusionSourceEventArgs(AROcclusionSources occlusionSources, Material handsMaterial)
Parameters
| Type | Name | Description |
|---|---|---|
| AROcclusionSources | occlusionSources | Flags to form a mask AROcclusionSources of enabled occlusion sources. |
| Material | handsMaterial | A material used for hands occlusion. |
Properties
handsMaterial
A material which is being used on hands, when hands occlusion is enabled.
Declaration
public readonly Material handsMaterial { get; }
Property Value
| Type | Description |
|---|---|
| Material |
occlusionSources
Flags to form a mask of enabled occlusion sources
Declaration
public readonly AROcclusionSources occlusionSources { get; }
Property Value
| Type | Description |
|---|---|
| AROcclusionSources |