API Docs for:
Show:

Component_Live2D Class

Module: vn

A Live2D component which allows a game-object to become a animated Live2D character.

Methods

dispose

()

Disposes the component and Live2D object.

onDataBundleRestore.

(
  • Object
  • gs.ObjectCodecContext
)

Called if this object instance is restored from a data-bundle. It can be used re-assign event-handler, anonymous functions, etc.

Parameters:

  • Object Object

    data - The data-bundle

  • gs.ObjectCodecContext Object

    context - The codec-context.

setup

()

Setup the Live2D component. This method is automatically called by the system.

update

()

Updates the Live2D object and its talking-animation.

update

()

Updates the Live2D character's talking-animation.

updateExpression

()

Updates the character's Live2D expression.

updateMotion

()

Updates the character's Live2D motion.

updateMotionGroup

()

Updates the character's Live2D motion-group.

updateOptionalProperties

()

Updates the optional Live2D object properties from the game object properties.

updateProperties

()

Updates the Live2D object properties from the game object properties.

Properties

expression

gs.Live2DExpression

The character's Live2D expression. Set name-property to an empty string to use default expression.

Default: { name: "" }

l2dObject

gs.Live2DObject

The Live2D graphics object.

motion

gs.Live2DMotion

The character's Live2D motion. Set name-property to an empty string to disable motion and use a generated default idle-motion.

Default: { name: "", loop: yes }

motionGroup

gs.Live2DMotionGroup

The character's Live2D motion-group. Can be null

Default: null

talkingDuration

Number protected

talkingStep

Number protected

talkingStep

Number protected