This section explains the “Object Mount Target” node and “Mount ID” added in version 1.0.14.
About the “Object Mount Target” Node
This node specifies the spawn location for objects generated by actions such as firing bullets (FireBullet) or generating objects (GenerateObject).
In the “Object Mount Target” node, you can specify a Mount ID as a string. When a Mount ID is specified in object generation actions, the object will be spawned as a child of the corresponding “Object Mount Target” node.
For example, if you enter “Target1” as the Mount ID in an “Object Mount Target” node, and then specify the Mount ID “Target1” as the spawn target in a player bullet firing action, the object will be spawned as a child of this “Object Mount Target” node.
This specification method is similar to that of “Camera Target Settings” and “Target ID” used to specify camera follow targets.
If no Mount ID is specified, the object will be spawned as a child of the Parallax2D to which the source belongs.
Use Case 1: Object Generation in the UI Layer
Since the Parallax2D node is typically not used in the UI layer, the “Object Mount Target” must be used when generating objects within the UI layer.
Use Case 2: Object Generation in a Different Layer
Previously, objects were forcibly generated in the same layer. With this feature, it is now possible to generate objects in a different layer.
For example, bullets from a turret in the background can be generated in the same layer as the player in the foreground, without needing to use a layer transition action.
About the Deprecated Object Root Node
The Object Root node was used in versions prior to 1.0.13.
Like the “Object Mount Target,” this node existed to specify the target layer for object generation. However, from version 1.0.14 onward, it can be replaced by Parallax2D.
Although it still functions, we recommend removing it as it is scheduled for deprecation. Simply moving objects that were children of ObjectRoot one level up, directly under a Parallax2D such as BaseLayer, will maintain proper functionality.
As mentioned earlier, since there is no Parallax2D in the UI layer, please use the “Object Mount Target” when performing object generation actions in the UI layer.