Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Tiles #213

Open
Faeyri opened this issue May 4, 2022 · 1 comment
Open

Object Tiles #213

Faeyri opened this issue May 4, 2022 · 1 comment

Comments

@Faeyri
Copy link

Faeyri commented May 4, 2022

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.

@jonny64bit
Copy link
Contributor

jonny64bit commented May 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants