docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Initialize

    Initialize(string, string)

    Initialize the cache values from the serialized data.

    Declaration
    public bool Initialize(string id, string dataStr)
    Parameters
    Type Name Description
    string id

    The object id. This value is usually the type name.

    string dataStr

    The serialized data.

    Returns
    Type Description
    bool

    Returns true if the initialization operation succeeded.

    Implements
    IInitializableObject.Initialize(string, string)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)