Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetExposedSpace

Provides the configured space of an exposed property in VisualEffectAsset.
Read time 1 minuteLast updated 7 days ago

Definition

GetExposedSpace(int)

Provides the configured space of an exposed property in VisualEffectAsset.
public VFXSpace GetExposedSpace(int nameID)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

VFXSpaceThe 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

name

The name of the property.

Returns

Type

Description

VFXSpaceThe 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.