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

Object Reference Error On Camera Script

$
0
0
I am receiving the error: NullReferenceException: Object reference not set to an instance of an object Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.GetDispatcher (System.Object target, System.Object[] args, System.String cacheKeyName, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.SetProperty (System.Object target, System.String name, System.Object value) CameraColorChange.OnMouseUp () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/Camera/CameraColorChange.js:10) UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32, Int32) With this script: var thecameras : GameObject[]; var color1 : Color; color1[0]; color1[1]; color1[2]; color1[3]; function OnMouseUp() { thecameras.camera.backgroundColor = color1; } It points out when I double click on it this section of the script: thecameras.camera.backgroundColor = color1; What am I doing wrong here?

Viewing all articles
Browse latest Browse all 7934

Latest Images

Trending Articles



Latest Images

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