Tag Info

New answers tagged

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