VFX.VisualEffectAsset.GetExposedProperties

Unity · Версия 2020.3 LTS · Scripting · VisualEffectAsset

VFX.VisualEffectAsset.GetExposedProperties

Объявление

public void GetExposedProperties(List<VFXExposedProperty> exposedProperties);

Параметры

exposedProperties Список, который эта функция заполняет открытыми свойствами.

Описание

Получает имя и тип каждого доступного свойства.

Возвращенный System.Type может быть typeof(float), typeof(Vector2), typeof(Vector3), typeof(Vector4), typeof(int), typeof(uint), typeof(Texture), typeof(Matrix4x4), typeof(AnimationCurve), typeof(Gradient), typeof(Mesh), typeof(bool) или typeof(ComputerBuffer).

Чтобы определить TextureDimension текстуры, вызовите VisualEffectAsset.GetTextureDimension.

Чтобы увеличить скорость процесса поиска, предварительно выделите входной список exposedProperties.

Обновлено 17 ноября 2026 г.