layer.states.remove(name)

Remove a layer state by name.
译:按名称删除图层状态。

Arguments(参数)

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

layerA = new Layer

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

layerA.states.remove("stateA")

results matching ""

    No results matching ""