Version: 2023.1
public VFX.VFXSpace GetExposedSpace (int nameID);
public VFX.VFXSpace GetExposedSpace (string name);

参数

nameID 属性的 ID。这与 Shader.PropertyToID 返回的 ID 相同。
name 属性的名称。

返回

VFXSpace The expected space of the property.

描述

Provides the configured space of an exposed property in VisualEffectAsset.

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.