layer.flat < boolean>

Enable or disable 3D properties for all children of the layer.
译:启用或禁用3D层的所有子项的属性。

# Enable flat on its children 
layerA = new Layer
    width: 200
    height: 200
    x: 100
    y: 100
    clip: false
    flat: true

# Rotate horizontally 
layerA.rotationX = 45

# With flat enabled, adjusting z has no effect 
layerB = new Layer
    parent: layerA
    z: 25

results matching ""

    No results matching ""