SuperTiled2Unity icon indicating copy to clipboard operation
SuperTiled2Unity copied to clipboard

Object Tiles

Open Faeyri opened this issue 3 years ago • 1 comments

Hi, I'm currently trying to implement tiles that trigger text when interacted with using objects. However, I'm not sure how to access the objects as well as the custom properties of said objects when scripting. I've

image Here I have an example scene, where I have six objects with an integer custom property set. They share the same object type, and each tile has a different int.

image Here is what the objects look like in Unity. There is one event layer with three objects as children.

Faeyri avatar May 04 '22 04:05 Faeyri

So I would do this by using the prefab replacement feature in ST2U

You can find general details about this here which has expanded details in this example repo here

It actually has a specific example which matches your use case here

jonny64bit avatar May 26 '22 12:05 jonny64bit