VisualEffectAsset
This class contains a graph of the elements needed to describe a visual effect. These include: the visual effects system, generated shaders, and compiled data.
Read time 4 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
- Inherits from: VisualEffectObject
public class VisualEffectAsset : VisualEffectObject
Remarks
Additional Resources: VisualEffect.
Static Fields
Value | Description |
|---|---|
| PlayEventID | The default name ID of the play event. |
| PlayEventName | The default name of the play event. |
| StopEventID | The default name ID of the stop event. |
| StopEventName | The default name of the stop event. |
Constructors
Constructor | Description |
|---|---|
| VisualEffectAsset() | The visual effect Asset constructor. |
Methods
Method | Description |
|---|---|
| GetEvents | Gets the name of every Event connected to a system. |
| GetExposedProperties | Gets the name and type of every exposed property. |
| GetExposedSpace | Provides the configured space of an exposed property in VisualEffectAsset. |
| GetTextureDimension | Gets the TextureDimension of a named exposed Texture. |
| PrewarmComputeShaders | Loads and prewarms all the compute shaders associated with the VisualEffectAsset. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |