docs.unity3d.com
    Show / Hide Table of Contents

    Class VFXPropertyBinder

    A Behaviour that controls binding between Visual Effect Properties, and other scene values, through the use of VFXBinderBase

    Inheritance
    Object
    VFXPropertyBinder
    Namespace: UnityEngine.VFX.Utility
    Syntax
    public class VFXPropertyBinder : MonoBehaviour

    Fields

    m_Bindings

    The list of all Bindings attached to the binder, these bindings are managed by the VFXPropertyBinder and should be managed using the AddPropertyBinder, ClearPropertyBinders, RemovePropertyBinder, RemovePropertyBinders, and GetPropertyBinders.

    Declaration
    public List<VFXBinderBase> m_Bindings
    Field Value
    Type Description
    List<VFXBinderBase>

    m_ExecuteInEditor

    Whether the bindings should be executed in editor (as preview)

    Declaration
    protected bool m_ExecuteInEditor
    Field Value
    Type Description
    Boolean

    m_VisualEffect

    The Visual Effect component attached to the VFXPropertyBinder

    Declaration
    protected VisualEffect m_VisualEffect
    Field Value
    Type Description
    VisualEffect

    Methods

    AddParameterBinder<T>()

    Adds a new PropertyBinder

    Declaration
    public T AddParameterBinder<T>()
        where T : VFXBinderBase
    Returns
    Type Description
    T

    The PropertyBinder newly Created

    Type Parameters
    Name Description
    T

    the Type of Property Binder

    AddPropertyBinder<T>()

    Adds a new PropertyBinder

    Declaration
    public T AddPropertyBinder<T>()
        where T : VFXBinderBase
    Returns
    Type Description
    T

    The PropertyBinder newly Created

    Type Parameters
    Name Description
    T

    the Type of Property Binder

    ClearParameterBinders()

    Clears all the Property Binders

    Declaration
    public void ClearParameterBinders()

    ClearPropertyBinders()

    Clears all the Property Binders

    Declaration
    public void ClearPropertyBinders()

    GetParameterBinders<T>()

    Gets all VFXBinderBase of Given Type, attached to this VFXPropertyBinder

    Declaration
    public IEnumerable<T> GetParameterBinders<T>()
        where T : VFXBinderBase
    Returns
    Type Description
    IEnumerable<T>

    An IEnumerable of all VFXBinderBase

    Type Parameters
    Name Description
    T

    Specific VFXBinderBase type

    GetPropertyBinders<T>()

    Gets all VFXBinderBase of Given Type, attached to this VFXPropertyBinder

    Declaration
    public IEnumerable<T> GetPropertyBinders<T>()
        where T : VFXBinderBase
    Returns
    Type Description
    IEnumerable<T>

    An IEnumerable of all VFXBinderBase

    Type Parameters
    Name Description
    T

    Specific VFXBinderBase type

    RemoveParameterBinder(VFXBinderBase)

    Removes specified Property Binder

    Declaration
    public void RemoveParameterBinder(VFXBinderBase binder)
    Parameters
    Type Name Description
    VFXBinderBase binder

    The VFXBinderBase to remove

    RemoveParameterBinders<T>()

    Remove all Property Binders of Given Type

    Declaration
    public void RemoveParameterBinders<T>()
        where T : VFXBinderBase
    Type Parameters
    Name Description
    T

    Specified VFXBinderBase type

    RemovePropertyBinder(VFXBinderBase)

    Removes specified Property Binder

    Declaration
    public void RemovePropertyBinder(VFXBinderBase binder)
    Parameters
    Type Name Description
    VFXBinderBase binder

    The VFXBinderBase to remove

    RemovePropertyBinders<T>()

    Remove all Property Binders of Given Type

    Declaration
    public void RemovePropertyBinders<T>()
        where T : VFXBinderBase
    Type Parameters
    Name Description
    T

    Specified VFXBinderBase type

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023