Tag Info

New answers tagged

0

It sound to me as though you already have an entire map of the town drawn up and you are trying to break it down into 16px X 16px tiles for the sole purpose of adding triggers and colliders etc. Why not just keep the map as its own object and put your collider and trigger objects over it where you need them to be? Really, a tile based map might be better ...


0

Yes, unless you click "Apply" in the editor any changes made to a prefab instance are considered as overriding the prefab and do not affect either the prefab or the other instances of the prefab. Once you instantiate the prefab you can change all aspects of that instance at your discretion. You do it the same exact way you manipulate any other object.


2

if you want to obtain the object owner of the collider instead of the hit point (that can be anywhere over the collider) simply use this code instead of hit.point: cameraDestination = hit.collider.gameObject.transform.position; The camera will center on the gameobject that owns the collider. If the position of the object is also the "visual" center you ...



Top 50 recent answers are included