Note that there are some explanatory texts on larger screens.

plurals
  1. POUnassignedReferenceException: The variable bullitPrefab of 'MoveAround' has not been assigned. Unity3D
    primarykey
    data
    text
    <p>I am making a game in Unity 3D from scratch.</p> <p><strong>i am getting an error</strong></p> <p>UnassignedReferenceException: The variable bullitPrefab of 'MoveAround' has not been assigned. You probably need to assign the bullitPrefab variable of the MoveAround script in the inspector. UnityEngine.Object.Internal_InstantiateSingle (UnityEngine.Object data, Vector3 pos, Quaternion rot) (at C:/BuildAgent/work/812c4f5049264fad/Runtime/ExportGenerated/Editor/UnityEngineObject.cs:44) UnityEngine.Object.Instantiate (UnityEngine.Object original, Vector3 position, Quaternion rotation) (at C:/BuildAgent/work/812c4f5049264fad/Runtime/ExportGenerated/Editor/UnityEngineObject.cs:53) MoveAround.Update () (at Assets/MoveAround.js:22)</p> <p><strong>i am getting an error in the following code</strong></p> <pre><code>enter code here var speed = 3.0; var rotateSpeed = 3.0; var bullitPrefab:Transform; function Update () { var controller : CharacterController = GetComponent(CharacterController); //Rotate around y - axis transform.Rotate(0, Input.GetAxis("Horizontal") * rotateSpeed, 0); //Move forward / bacward var forward = transform.TransformDirection(Vector3.forward); var curSpeed = speed * Input.GetAxis("Vertical"); controller.SimpleMove(forward * curSpeed); if(Input.GetButtonDown("Jump")) { var bullit = Instantiate(bullitPrefab, gameObject.Find("spwanPoint").transform.position, Quaternion.identity); } } </code></pre> <p>@script RequireComponent(CharacterController)</p> <p>here is the link of the tutorial <a href="http://www.youtube.com/watch?v=wfpZ7_aFoko&amp;list=PL11F87EB39F84E292" rel="nofollow">http://www.youtube.com/watch?v=wfpZ7_aFoko&amp;list=PL11F87EB39F84E292</a> </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload