layer.states.current < string>

The name of the current state.
译:当前状态的名称。

Arguments(参数)

name — A string, the title of the state. 译:一个字符串,该状态的标题。

layerA = new Layer

layerA.states.add
    stateA:
        x: 500
        opacity: 0.5

layerA.states.switchInstant("stateA")

print layerA.states.current
# Output: stateA

results matching ""

    No results matching ""