`1.ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib//List.cs:65) `1.AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib//List.cs:128) _2 (UnityEngine.GameObject inputObject) (at Assets/Gltf/Editor/Exporter.cs:149) (UnityEngine.GameObject gameObject) (at Assets/Gltf/Editor/Exporter.cs:317) (UnityEngine.Material unityMaterial) (at Assets/Gltf/Editor/Exporter.cs:357) (UnityEngine.Material unityMaterial, Boolean packOcclusion, System.Int32& index) (at Assets/Gltf/Editor/Exporter.cs:399) (UnityEngine.Texture2D unityTexture, System.String name) (at Assets/Gltf/Editor/Exporter.cs:584) () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:76) ![]() (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:242) (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:249) (System.Object obj, System.Object parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) ![]() (System.Object obj, BindingFlags invokeAttr, binder, System.Object parameters, culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. (System.Object obj, BindingFlags invokeAttr, binder, System.Object parameters, culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) () (at Assets/Gltf/Editor/ExportWindow.cs:84) +c_AnonStorey0.m_0 (UnityEngine.GameObject gameObject) (at Assets/Gltf/Editor/ExportWindow.cs:86)ĮnumerableExtensions.ForEach (IEnumerable 1 values, System.Action1 action) (at Assets/Gltf/EnumerableExtensions.cs:10) (UnityEngine.GameObject inputObject, System.String outputDirectory, System.String outputName, Boolean outputBinary, Formatting jsonFormatting, ImageFormat imageFormat, Extensions extensions) (at Assets/Gltf/Editor/Exporter.cs:28) (IEnumerable 1 inputObjects, System.String outputDirectory, System.String outputName, Boolean outputBinary, Formatting jsonFormatting, ImageFormat imageFormat, Extensions extensions) (at Assets/Gltf/Editor/Exporter.cs:110) (IEnumerable1 inputObjects, System.String outputDirectory, System.String outputName, Boolean outputBinary, Formatting jsonFormatting, ImageFormat imageFormat, Extensions extensions) (at Assets/Gltf/Editor/Exporter.cs:35) _1A (UnityEngine.GameObject inputObject) (at Assets/Gltf/Editor/Exporter.cs:110) (UnityEngine.GameObject gameObject) (at Assets/Gltf/Editor/Exporter.cs:249) +c_Iterator10 2.MoveNext () 1.AddEnumerable (IEnumerable 1 enumerable) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib//List.cs:128) 1.ctor (IEnumerable 1 collection) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib//List.cs:65) (IEnumerable1 source) +c_AnonStoreyB.m_1 (UnityEngine.GameObject child) (at Assets/Gltf/Editor/Exporter.cs:249) (UnityEngine.GameObject gameObject) (at Assets/Gltf/Editor/Exporter.cs:259) (UnityEngine.Material unityMaterial) (at Assets/Gltf/Editor/Exporter.cs:330) (UnityEngine.Texture2D unityTexture, System.String imageName, Boolean normalMap) (at Assets/Gltf/Editor/Exporter.cs:487) ![]() System.IO.File.WriteAllBytes (System.String path, System.Byte bytes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:595) NullReferenceException: Object reference not set to an instance of an object DroneMonitor_Trigger_Script.Update() (at Assets/DroneMonitor_Trigger_Script.After the texture format error I'm getting the following NullReferenceException: ![]() NULLREFERENCEEXCEPTION: Object reference not set to an instance of an object. The above line is what is generating the error. PhotonView.RPC("MoveDrone", PhotonTargets.MasterClient, dir) Public void OnTriggerEnter(Collider other) Public bool HaveWeEnteredTrigger = false Public class DroneMonitor_Trigger_Script : Photon.MonoBehaviour The idea is this: The player wants to launch a UAV (drone), and see the camera, that is on the drone, displayed on the monitor he is looking at, on the table, so that he can fly the drone around. I have seen forums discussing that you need to Instantiate the object, but I can not get my head wrapped around what the code needs to look like. Well, after searching the Internet for this answer, I can not figure out how this is happening.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |