Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ajk

Pages: [1]
1
Thx for your reply.

Unfortunetely I need actual coordinates, not just some string to distinguish the object. But I already managed to handle that.

Well, I had another idea. Maybe if you would like it, you could consider implementing it someday.
What about sending message to instantiated prefab objects in tileMap? Something like

Code: [Select]
void OnTiled(int x, int y)
That way, if someone would want to perform some coordinate-specific logic, he would implement mentioned method.

2

What I'm going to do moving forward is add an additional behaviour per prefab instance, where you can tie in whatever data you'd like - as long as the behaviour derives from a particular base class, it will automatically populate it with specific info, like the X,Y & Layer values.


Hey.

That's exacly what I would need for my game. I need my prefabs to gets somehow notified, what tile position they occupy.

Could you share mentioned base class, which would get autopopulated with tile data?

Cheers

Pages: [1]