Move to Layer

Description

The Move to Layer behavior will move your selected object to another layer in your scene. Remember, objects on different layers can not collide with each other. You can learn more about layers from the Layers documentation.

This behavior will trigger an event immediately.

 

Properties

Triggers Immediately

Object A

This is the object that will be moved to a new layer. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Layer

Select which layer you want to move the object to.

 

Outputs

Object ID

This outputs the Object ID.

 

Examples

This behavior could be used to a gameplay element to make you character avoid objects falling towards it. ie. rocks rolling down a hill, switch the layer to avoid the rockers.

 

MoveToLayerReference.gif

0 Comments

Article is closed for comments.