Class VFXTypeAttribute
Defines a VFXType that you can use in Node Workspace.
Namespace: UnityEngine.VFX
Syntax
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
public class VFXTypeAttribute : Attribute, _Attribute
Constructors
VFXTypeAttribute(VFXTypeAttribute.Usage, String)
Initializes and returns an instance of VFXType.
Declaration
public VFXTypeAttribute(VFXTypeAttribute.Usage usages = VFXTypeAttribute.Usage.Default, string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| VFXTypeAttribute.Usage | usages | Flags that set how the Visual Effect Graph can use the VFXType. |
| String | name | Custom name of the VFXType (can be null). |