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