Represents a Cubism version.

Hierarchy

  • Live2DRuntime

Properties

version: number

The version number. Higher version takes priority when matching the runtime.

Methods

  • Creates a core model.

    Returns

    Created core model.

    Parameters

    • data: ArrayBuffer

      Content of the moc file.

    Returns any

  • Creates a physics.

    Returns

    Created physics.

    Parameters

    • coreModel: any

      Core model that must belong to this runtime.

    • data: any

      Content of the physics file.

    Returns any

  • Creates a pose.

    Returns

    Created pose.

    Parameters

    • coreModel: any

      Core model that must belong to this runtime.

    • data: any

      Content of the pose file.

    Returns any

  • Checks if the data is a valid moc to create the core model.

    Returns

    True if the data is valid.

    Parameters

    • modelData: ArrayBuffer

      The moc content.

    Returns boolean

  • Checks if the source belongs to this runtime.

    Returns

    True if the source belongs to this runtime.

    Parameters

    • source: any

      Either a settings JSON object or a ModelSettings instance.

    Returns boolean

Generated using TypeDoc