Class: Drawable

Drawable()

Cubismの描画オブジェクトを表すオブジェクト

Constructor

new Drawable()

Source:
Example
function start(){
    for(let drawable of model.drawables){
        console.log("ID",drawable.id)
        console.log("  Opacity",drawable.opacity)
        console.log("  DrawOrder",drawable.drawOrder)
        console.log("  Parent Part:",drawable.parentPart?.id)
        console.log("  MultiplyColor:",drawable.multiplyColor)
        console.log("  ScreenColor:",drawable.screenColor)
    }
}

Members

(readonly) drawOrder :number

描画順
Type:
  • number
Source:

(readonly) id :string

描画オブジェクトID Cubism Editorで設定したもの
Type:
  • string
Source:

multiplyColor :Color

乗算色
Type:
Source:

(readonly) opacity :number

不透明度
Type:
  • number
Source:

(readonly) parentPart :Object

親パーツ
Type:
  • Object
Source:

screenColor :Color

スクリーン色
Type:
Source: