기술 자료

Unity Engine

Unity Engine

GetExposedSpace

Provides the configured space of an exposed property in VisualEffectAsset.
읽는 시간 1분최근 업데이트: 한 달 전

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.