- Home /
Find location of an object without using Transform.Find("")
I have multiple enemies named the same since they are prefabs and I need to Instantiate a particle to play on the location of the enemies death. Idk if there is a way to use the gameObject.Transform.Find("")
but I couldn't find one.
Comment
Vector3 deathPosition = enemyComponent.transform.position;
enemyComponent.Die();
SpawnDeathFx( deathPosition );
Your answer

Follow this Question
Related Questions
How to center prefabs' children to (0, 0, 0) without changing their position relative to each other 1 Answer
Spawning objects around a point 1 Answer
Moving an object to points 1 Answer
How to spawn a prefab in a cone in front of player? 2 Answers
How should I properly store statistics of various items of same type? 2 Answers