docs.unity3d.com
    Show / Hide Table of Contents

    Class SerializableCallbackBase

    An inspector-friendly serializable function

    Inheritance
    Object
    SerializableCallbackBase
    SerializableCallbackBase<TReturn>
    SerializableEventBase
    Namespace: SerializableCallback
    Syntax
    [Serializable]
    public abstract class SerializableCallbackBase : ISerializationCallbackReceiver

    Fields

    _args

    Declaration
    [SerializeField]
    protected Arg[] _args
    Field Value
    Type Description
    Arg[]

    _dynamic

    Declaration
    [SerializeField]
    protected bool _dynamic
    Field Value
    Type Description
    Boolean

    _methodName

    Declaration
    [SerializeField]
    protected string _methodName
    Field Value
    Type Description
    String

    _target

    Declaration
    [SerializeField]
    protected Object _target
    Field Value
    Type Description
    Object

    args

    Declaration
    public object[] args
    Field Value
    Type Description
    Object[]

    argTypes

    Declaration
    public Type[] argTypes
    Field Value
    Type Description
    Type[]

    Properties

    Args

    Declaration
    public object[] Args { get; }
    Property Value
    Type Description
    Object[]

    ArgTypes

    Declaration
    public Type[] ArgTypes { get; }
    Property Value
    Type Description
    Type[]

    dynamic

    Declaration
    public bool dynamic { get; set; }
    Property Value
    Type Description
    Boolean

    methodName

    Target method name

    Declaration
    public string methodName { get; set; }
    Property Value
    Type Description
    String

    target

    Target object

    Declaration
    public Object target { get; set; }
    Property Value
    Type Description
    Object

    Methods

    Cache()

    Declaration
    protected abstract void Cache()

    ClearCache()

    Declaration
    public virtual void ClearCache()

    OnAfterDeserialize()

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    SetMethod(Object, String, Boolean, Arg[])

    Declaration
    public void SetMethod(Object target, string methodName, bool dynamic, params Arg[] args)
    Parameters
    Type Name Description
    Object target
    String methodName
    Boolean dynamic
    Arg[] args
    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