Is there any way to assign DIFFERENT tags to different objects all of them inside the same Prefab? I have a prefab that encapsulates different geometries, each one is a different object, and I will like to assign DIFFERENT tags to those geometries could this be accomplished without scripting?
Thank you
hi
that’s easy.
u can use this code :
// Instan`enter code here`tiates a prefab at the path "Assets/Resources/enemy".
function Start () {
var instance : GameObject = Instantiate(Resources.Load("enemy"));
instance.tag = "your tag";
}