ThreePipe
    Preparing search index...

    Class ThreeSerialization

    Index

    Constructors

    Properties

    Constructors

    Properties

    Deserialize: (
        data: any,
        obj: any,
        meta?: Record<string, any>,
        isThis?: boolean,
    ) => any = Serialization.Deserialize

    Deserialize an object Serialization.Deserialize

    Type declaration

      • (data: any, obj: any, meta?: Record<string, any>, isThis?: boolean): any
      • Deserialize an object

        Parameters

        • data: any

          data to deserialize

        • obj: any

          current object that's set. If of the same class/type the data is deserialized into that instead of creating new objects.

        • Optionalmeta: Record<string, any>

          Optional object to retrieve common meta-data/resources across the deserialization process of multiple objects. Objects in meta must be class instances, not js objects. (like Material, Texture, Object3D etc)

        • OptionalisThis: boolean

          true if called from inside the deserialization function, like custom IJSONSerializable.fromJSON

        Returns any

    Serialize: (
        obj: any,
        meta?: Record<string, Record<string, any>>,
        isThis?: boolean,
    ) => any = Serialization.Serialize

    Serialize an object Serialization.Serialize

    Type declaration

      • (obj: any, meta?: Record<string, Record<string, any>>, isThis?: boolean): any
      • Serialize an object

        Parameters

        • obj: any

          object to serialize

        • Optionalmeta: Record<string, Record<string, any>>

          Optional object to store common meta-data/resources across the serialization process of multiple objects

        • OptionalisThis: boolean

          true if called from inside the serialization function, like custom IJSONSerializable.toJSON.

        Returns any