#transform type mismatch on a prefab when dragging an object from hierarchy
1 messages · Page 1 of 1 (latest)
How do you expect to assign a scene entity in a prefab?
dragging it on a prefab, since the object is always in the scene?
The prefab isn't though..
im a noob if you havent noticed so idk
so how do i make it get the players current location then?
Inject a reference when you instantiate it
uhh
yea, ima need to do some google searches
wait, but i have a spawnManager script that instantiates enemies, but im making it track from the enemy script
how would injecting a reference work
im making it track from the enemy script
What do you mean by this
i have an enemy script, which im making the enemy chase after the player and also attack and stuff, but i instantiate the enemy from a spawnManager script
I assume the spawn manager is present in the scene, yes? (Not a prefab itself)
yes, its in the scene