Instantiate the layer class.
| Name | Type | Description |
|---|---|---|
context |
Context | context object |
Members
-
Set or get the sub-object filtering distance threshold.
-
Set or get the sub-object filtering mode, the default is: pixel filtering.
-
Set or get sub-object filter pixel threshold.
-
Set or get the maximum visible height of the layer.
-
Set or get the minimum visible height of the layer.
-
Get or set whether the object is selectable.
-
Default Value:
true -
selectedColor : Color
-
Set or get the highlight color of the selected object.
-
shadowType : ShadowType
-
Get or set the shadow mode. The default value is NONE.
-
Default Value:
NONE -
Sets the slice side length.
Methods
-
Add instances in batches.
Name Type Description urlString instance model skeleton url attrsArray instance attribute -
get instance
Name Type Description urlString instance url idsArray instance ids array -
Gets the visibility of the corresponding viewport of the layer.
Name Type Description indexNumber Viewport index. Returns:
is visible. -
Remove instances in bulk
Name Type Description urlString instance url idsArray instance ids array -
Deselects all instances.
-
Sets the visibility of the layer corresponding to the viewport.
Name Type Description indexNumber viewport index visibleBoolean is visible -
Update instanced frame state
Name Type Description frameStateFrameState optional frame state -
Update all slices of the layer
