Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Keep getting an error saying game object is missing but everything is working just fine just a spam of errors.

$
0
0
when i shoot a bullet it comes out everything works fine but i keep getting an error saying "the referenced script on this behaviour (gameobject ) is missing" but like i said when you shoot everything works fine here is the code the error says its in row 29 ill mark it to show //The Bullet instantiation happens here. GameObject Temporary_Bullet_Handler; right here -------> Temporary_Bullet_Handler = Instantiate(Bullet, Bullet_Emitter.transform.position, Bullet_Emitter.transform.rotation) as GameObject; Temporary_Bullet_Handler.transform.Rotate(Vector3.left * 90); Rigidbody Temporary_RigidBody; Temporary_RigidBody = Temporary_Bullet_Handler.GetComponent(); Temporary_RigidBody.AddForce(transform.forward * Bullet_Forward_Force); Destroy(Temporary_Bullet_Handler, 10.0f);

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>