Question by
millie2107 · May 16, 2017 at 03:43 AM ·
transformpositionvector3
Cannot implicitly convert type `UnityEngine.Vector3' to `UnityEngine.Transform
I'm trying to set a fix position for the target position. However i get this error message from unity.
public Transform eggPositionLeft = new Vector3(-2f, -4f);
Comment
Answer by Yuzuke · May 16, 2017 at 04:55 AM
public Transform eggPositionLeft;
void YourFunction() { eggPositionLeft.transform.position = new Vector3( -2f, -4f ); }
Your answer
Follow this Question
Related Questions
gameobject position lerp 0 Answers
I need help with the location of instatiated objects on the scene and correct interaction with this 0 Answers
MultiPlayer Transform Sync 0 Answers
Player Floating 0 Answers