Placeable Object → Placed Object
Last updated
Last updated
When a placeable object is placed on a grid it gets a new script attached called PlacedObject. PlacedObject is responsible for handling the mouse hold on the selected object and then trigger opening the action tooltip
It holds a reference to the Placeable object itself (in case of moving the object we need to access the object size from the placeable properties).
And it also initializes a PlaceableObjectData and holds a reference to it. This data is needed for the SaveSystem, since it stores the current object position, the asset identifier, the rotation direction and a unique guid that allows each placed object to be uniquely identified..