Class VisionOSImageBasedLightReceiver
Sets a GameObject and its children to be illuminated by a designated Unity.PolySpatial.PolySpatialImageBasedLight.
Inherited Members
Namespace: Unity.PolySpatial
Assembly: Unity.PolySpatial.dll
Syntax
[Tooltip("Image Based Light Receiver")]
[DisallowMultipleComponent]
public class VisionOSImageBasedLightReceiver : MonoBehaviour
Remarks
Add a VisionOSImageBasedLightReceiver
component to a GameObject and set its
Unity.PolySpatial.PolySpatialImageBasedLightReceiver.ImageBasedLight
property to the Unity.PolySpatial.PolySpatialImageBasedLight object that
should provide illumination. All MeshRenderer objects on the
same GameObject or its children receive illumination from the designated light source.
You can prevent a child GameObject from being illuminated by an image-based light source
by assigning the child its own VisionOSImageBasedLightReceiver
and leaving the
Image Based Light property null.
A VisionOSImageBasedLightReceiver
object maps directly to a RealityKit ImageBasedLightReceiverComponent.
Refer to Image Based Lighting for additional information about how to set up and use image based lights.
Properties
ImageBasedLight
A reference to the image based light to apply to this object and its descendants.
Declaration
public VisionOSImageBasedLight ImageBasedLight { get; set; }
Property Value
Type | Description |
---|---|
VisionOSImageBasedLight |