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

What is causing my Spawner script to break Unity?

$
0
0
I believe it’s a combination of my player movement script which gives me an error code - Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation(Vector3), my camera script and my spawner script. When my camera and player movement script run separately and together I just receive the error code, it still plays. Once the spawner script is added it breaks unity. I’ve went line by line adding a new line after each play button press, to see when it breaks and it seems to start with the SpawnRandom method. What am I not seeing? What am I doing wrong? Thank you for all your help. It is much appreciated. each script is using: using System.Collections; using System.Collections.Generic; MonoBehaviour alt text![alt text][1] [1]: /storage/temp/108328-screen-shot-2017-12-31-at-72726-pm.png

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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