docs.unity3d.com
    目次を表示する/隠す

    Struct ObjectInitializationData

    Contains data used to construct and initialize objects at runtime.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.Util
    Syntax
    [Serializable]
    public struct ObjectInitializationData

    Properties

    Name Description
    Data

    String representation of the data that will be passed to the IInitializableObject.Initialize method of the created object. This is usually a JSON string of the serialized data object.

    Id

    The object id.

    ObjectType

    The object type that will be created.

    Methods

    Name Description
    CreateInstance<TObject>(String)

    Create an instance of the defined object. Initialize will be called on it with the id and data if it implements the IInitializableObject interface.

    GetAsyncInitHandle(ResourceManager, String)

    Create an instance of the defined object. This will get the AsyncOperationHandle for the async Initialization operation if the object implements the IInitializableObject interface.

    ToString()

    Converts information about the initialization data to a formatted string.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)