c# - Instantiate not placing clones at desired place -
i´m trying instantiate clone of prefab. pass parameter prefab clone, position put , rotation. problem unity don't put clone desired position. ideas?
using unityengine; using system.collections; public class enemygenerator : monobehaviour { public gameobject enemy; void start() { instantiate(enemy, new vector3(30, 30, 30), quaternion.identity); } }
Comments
Post a Comment