Class VisualEffect
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public class VisualEffect : Behaviour
Properties
aliveParticleCount
Declaration
public int aliveParticleCount { get; }
Property Value
culled
Declaration
public bool culled { get; }
Property Value
pause
Declaration
public bool pause { get; set; }
Property Value
playRate
Declaration
public float playRate { get; set; }
Property Value
resetSeedOnPlay
Declaration
public bool resetSeedOnPlay { get; set; }
Property Value
startSeed
Declaration
public uint startSeed { get; set; }
Property Value
visualEffectAsset
Declaration
public VisualEffectAsset visualEffectAsset { get; set; }
Property Value
Methods
AdvanceOneFrame()
Declaration
public void AdvanceOneFrame()
|
Improve this Doc
View Source
CreateVFXEventAttribute()
Declaration
public VFXEventAttribute CreateVFXEventAttribute()
Returns
|
Improve this Doc
View Source
GetAnimationCurve(Int32)
Declaration
public AnimationCurve GetAnimationCurve(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetAnimationCurve(String)
Declaration
public AnimationCurve GetAnimationCurve(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetBool(Int32)
Declaration
public bool GetBool(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetBool(String)
Declaration
public bool GetBool(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetFloat(Int32)
Declaration
public float GetFloat(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetFloat(String)
Declaration
public float GetFloat(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetGradient(Int32)
Declaration
public Gradient GetGradient(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetGradient(String)
Declaration
public Gradient GetGradient(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetInt(Int32)
Declaration
public int GetInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetInt(String)
Declaration
public int GetInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetMatrix4x4(Int32)
Declaration
public Matrix4x4 GetMatrix4x4(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetMatrix4x4(String)
Declaration
public Matrix4x4 GetMatrix4x4(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetMesh(Int32)
Declaration
public Mesh GetMesh(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetMesh(String)
Declaration
public Mesh GetMesh(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetTexture(Int32)
Declaration
public Texture GetTexture(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetTexture(String)
Declaration
public Texture GetTexture(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetTextureDimension(Int32)
Declaration
public TextureDimension GetTextureDimension(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetTextureDimension(String)
Declaration
public TextureDimension GetTextureDimension(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetUInt(Int32)
Declaration
public uint GetUInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetUInt(String)
Declaration
public uint GetUInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetVector2(Int32)
Declaration
public Vector2 GetVector2(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetVector2(String)
Declaration
public Vector2 GetVector2(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetVector3(Int32)
Declaration
public Vector3 GetVector3(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetVector3(String)
Declaration
public Vector3 GetVector3(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetVector4(Int32)
Declaration
public Vector4 GetVector4(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetVector4(String)
Declaration
public Vector4 GetVector4(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasAnimationCurve(Int32)
Declaration
public bool HasAnimationCurve(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasAnimationCurve(String)
Declaration
public bool HasAnimationCurve(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasBool(Int32)
Declaration
public bool HasBool(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasBool(String)
Declaration
public bool HasBool(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasFloat(Int32)
Declaration
public bool HasFloat(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasFloat(String)
Declaration
public bool HasFloat(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasGradient(Int32)
Declaration
public bool HasGradient(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasGradient(String)
Declaration
public bool HasGradient(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasInt(Int32)
Declaration
public bool HasInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasInt(String)
Declaration
public bool HasInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasMatrix4x4(Int32)
Declaration
public bool HasMatrix4x4(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasMatrix4x4(String)
Declaration
public bool HasMatrix4x4(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasMesh(Int32)
Declaration
public bool HasMesh(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasMesh(String)
Declaration
public bool HasMesh(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasTexture(Int32)
Declaration
public bool HasTexture(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasTexture(String)
Declaration
public bool HasTexture(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasUInt(Int32)
Declaration
public bool HasUInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasUInt(String)
Declaration
public bool HasUInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasVector2(Int32)
Declaration
public bool HasVector2(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasVector2(String)
Declaration
public bool HasVector2(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasVector3(Int32)
Declaration
public bool HasVector3(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasVector3(String)
Declaration
public bool HasVector3(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
HasVector4(Int32)
Declaration
public bool HasVector4(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
HasVector4(String)
Declaration
public bool HasVector4(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Play()
Declaration
Play(VFXEventAttribute)
Declaration
public void Play(VFXEventAttribute eventAttribute)
Parameters
Reinit()
Declaration
ResetOverride(Int32)
Declaration
public void ResetOverride(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
|
Improve this Doc
View Source
ResetOverride(String)
Declaration
public void ResetOverride(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
SendEvent(Int32, VFXEventAttribute)
Declaration
public void SendEvent(int eventNameID, VFXEventAttribute eventAttribute)
Parameters
|
Improve this Doc
View Source
SendEvent(String)
Declaration
public void SendEvent(string eventName)
Parameters
Type |
Name |
Description |
String |
eventName |
|
|
Improve this Doc
View Source
SendEvent(String, VFXEventAttribute)
Declaration
public void SendEvent(string eventName, VFXEventAttribute eventAttribute)
Parameters
SetAnimationCurve(Int32, AnimationCurve)
Declaration
public void SetAnimationCurve(int nameID, AnimationCurve c)
Parameters
|
Improve this Doc
View Source
SetAnimationCurve(String, AnimationCurve)
Declaration
public void SetAnimationCurve(string name, AnimationCurve c)
Parameters
SetBool(Int32, Boolean)
Declaration
public void SetBool(int nameID, bool b)
Parameters
|
Improve this Doc
View Source
SetBool(String, Boolean)
Declaration
public void SetBool(string name, bool b)
Parameters
SetFloat(Int32, Single)
Declaration
public void SetFloat(int nameID, float f)
Parameters
|
Improve this Doc
View Source
SetFloat(String, Single)
Declaration
public void SetFloat(string name, float f)
Parameters
SetGradient(Int32, Gradient)
Declaration
public void SetGradient(int nameID, Gradient g)
Parameters
|
Improve this Doc
View Source
SetGradient(String, Gradient)
Declaration
public void SetGradient(string name, Gradient g)
Parameters
SetInt(Int32, Int32)
Declaration
public void SetInt(int nameID, int i)
Parameters
|
Improve this Doc
View Source
SetInt(String, Int32)
Declaration
public void SetInt(string name, int i)
Parameters
SetMatrix4x4(Int32, Matrix4x4)
Declaration
public void SetMatrix4x4(int nameID, Matrix4x4 v)
Parameters
|
Improve this Doc
View Source
SetMatrix4x4(String, Matrix4x4)
Declaration
public void SetMatrix4x4(string name, Matrix4x4 v)
Parameters
SetMesh(Int32, Mesh)
Declaration
public void SetMesh(int nameID, Mesh m)
Parameters
|
Improve this Doc
View Source
SetMesh(String, Mesh)
Declaration
public void SetMesh(string name, Mesh m)
Parameters
SetTexture(Int32, Texture)
Declaration
public void SetTexture(int nameID, Texture t)
Parameters
|
Improve this Doc
View Source
SetTexture(String, Texture)
Declaration
public void SetTexture(string name, Texture t)
Parameters
SetUInt(Int32, UInt32)
Declaration
public void SetUInt(int nameID, uint i)
Parameters
|
Improve this Doc
View Source
SetUInt(String, UInt32)
Declaration
public void SetUInt(string name, uint i)
Parameters
SetVector2(Int32, Vector2)
Declaration
public void SetVector2(int nameID, Vector2 v)
Parameters
|
Improve this Doc
View Source
SetVector2(String, Vector2)
Declaration
public void SetVector2(string name, Vector2 v)
Parameters
SetVector3(Int32, Vector3)
Declaration
public void SetVector3(int nameID, Vector3 v)
Parameters
|
Improve this Doc
View Source
SetVector3(String, Vector3)
Declaration
public void SetVector3(string name, Vector3 v)
Parameters
SetVector4(Int32, Vector4)
Declaration
public void SetVector4(int nameID, Vector4 v)
Parameters
|
Improve this Doc
View Source
SetVector4(String, Vector4)
Declaration
public void SetVector4(string name, Vector4 v)
Parameters
|
Improve this Doc
View Source
Stop()
Declaration
Stop(VFXEventAttribute)
Declaration
public void Stop(VFXEventAttribute eventAttribute)
Parameters
Extension Methods