Skip to content

Scene Placer

NarreDev edited this page May 26, 2023 · 2 revisions

This node adds custom 3D scenes from the 2D Tilemap, and allows to edit script exported properties. Just place the 3D scene in the p_scene property, and it's exported properties will appear below.

Usage

It has to be placed as a child of the Tilemap, and when the scene is loaded by the map loader, the 2D position and rotation of the scene placer will transfer to the 3D space. Note that the 2D position will be snapped to the tile grid.

The original 3D scene must be facing the front if you want it to match the scene placer rotation. Also, it's y position will be transferred as an offset.

It should support any type of custom export, including node paths and nodes. Just make sure to export as base Node, or else you won’t be able to chose any 3D Node in the 2D Tilemap and any 2D Node in the map loader won’t be set.

Clone this wiki locally