VisualEffect

class in UnityEngine.VFX

/

Hereda de:Behaviour

Cambiar al Manual

Descripción

The visual effect class that references an VisualEffectAsset instance within the Scene.

Variables

aliveParticleCountReturns the sum of all alive particles within the visual effect.
culledUse this property to determine if this visual effect is not visible from any Camera. (Read Only)
initialEventIDThe default event name ID. To retrieve this value, use the Shader.PropertyID after VisualEffect has awakened or after you've invoked VisualEffect.Reinit.
initialEventNameThe default event name. Unity calls this event when the VisualEffect awakes, or when you call VisualEffect.Reinit.
pauseUse this property to set the pause state of the visual effect.
playRateA multiplier that Unity applies to the delta time when it updates the VisualEffect. The default value is 1.0f.
resetSeedOnPlayThis property controls whether the visual effect generates a new seed for the random number generator with each call to VisualEffect.Play function.
startSeedThe initial seed used for internal random number generator.
visualEffectAssetThe VisualEffectAsset that the VisualEffect uses.

Constructores

VisualEffectThe VisualEffect constructor.

Funciones Públicas

AdvanceOneFrameIf VisualEffect.pause is true, this method processes the next visual effect update for exactly one frame with the current delta time.
CreateVFXEventAttributeUse this method to create a new VFXEventAttribute.
GetAnimationCurveGets the value of a named animation curve property
GetBoolGets the value of a named bool property
GetFloatGets the value of a named float property
GetGradientGets the value of a named gradient property
GetIntGet a named exposed integer.
GetMatrix4x4Gets the value of a named Matrix4x4 property
GetMeshGets the value of a named mesh property
GetTextureGets the value of a named texture property
GetTextureDimensionGets expected texture dimension for a named exposed texture.
GetUIntGets the value of a named unsigned integer property
GetVector2Gets the value of a named Vector2 property
GetVector3Gets the value of a named Vector3 property
GetVector4Gets the value of a named Vector4 property
HasAnimationCurveUse this method to check if the visual effect can override an animation curve with the name you pass in.
HasBoolUse this method to check if the visual effect can override a bool with the name you pass in.
HasFloatUse this method to check if the visual effect can override a float with the name you pass in.
HasGradientUse this method to check if the visual effect can override a gradient with the name you pass in.
HasIntUse this method to check if the visual effect can override an integer with the name you pass in.
HasMatrix4x4Use this method to check if the visual effect can override a Matrix4x4 with the name you pass in.
HasMeshUse this method to check if the visual effect can override a Mesh with the name you pass in.
HasTextureUse this method to check if the visual effect can override a texture with the name you pass in.
HasUIntUse this method to check if the visual effect can override an unsigned integer with the name you pass in.
HasVector2Use this method to check if the visual effect can override a Vector2 with the name you pass in.
HasVector3Use this method to check if the visual effect can override a Vector3 with the name you pass in.
HasVector4Use this method to check if the visual effect can override a Vector4 with the name you pass in.
PlayUse this method to send a play event to every Spawn system.
ReinitReintialize visual effect.
ResetOverrideUse this method to set the overridden state to false. This restores the default value that the Visual Effect Asset specifies.
SendEventUse this method to send a custom named event.
SetAnimationCurveThe new animation curve value.
SetBoolThe new bool value.
SetFloatThe new float value.
SetGradientThe new gradient value.
SetIntThe new integer value.
SetMatrix4x4The new Matrix4x4 value.
SetMeshThe new mesh value.
SetTextureThe new texture value.
SetUIntThe new unsigned integer value.
SetVector2The new Vector2 value.
SetVector3The new Vector3 value.
SetVector4The new Vector4 value.
SimulateUse this method to fast-forward the visual effect by simulating all systems for several step counts using the specified delta time.
StopUse this method to send a stop event to all Spawn systems.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had active and enabled called?
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentDevuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene.
GetComponentInChildrenRetorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad).
GetComponentInParentRetorna el componente de tipo type en el GameObject o cualquiera de sus padres.
GetComponentsRetorna todos los componentes de tipo type en el GameObject.
GetComponentsInChildrenRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo.
GetComponentsInParentRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961