GetExposedSpace
Provides the configured space of an exposed property in VisualEffectAsset.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetExposedSpace(int)
Provides the configured space of an exposed property in VisualEffectAsset.
public VFXSpace GetExposedSpace(int nameID)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| VFXSpace | The expected space of the property. |
Remarks
VFXSpace.None will be returned if the property doesn't exist or isn't spaceable. The VisualEffect.SetVector3 will not apply any automatic transform, the VisualEffect is expecting raw values.
GetExposedSpace(string)
Provides the configured space of an exposed property in VisualEffectAsset.
public VFXSpace GetExposedSpace(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| VFXSpace | The expected space of the property. |
Remarks
VFXSpace.None will be returned if the property doesn't exist or isn't spaceable. The VisualEffect.SetVector3 will not apply any automatic transform, the VisualEffect is expecting raw values.