Hi everyone,
I am using the Unity to build the web ar
I tried the below action:
1- I was using the Unity Editor version as 6000.0.8f1 and 2022.3.41f1
2- I downloaded the needle plugin and installed to unity project
3- I downloaded the sample - âFace Filterâ
4- I make sure the needle project validation have been set up
5- Add the scene to âScenes in buildâ
6- Build and run
Error building Player: 4 errors
Build completed with a result of âFailedâ in 83 seconds (82596 ms)
5 errors
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.HostView.GetExtraButtonsWidth () (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:737)
UnityEditor.DockArea.OldOnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/DockArea.cs:360)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:355)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
âŠ
Hi Alan Wong,
It seems youâre encountering build errors related to a NullReferenceException when trying to build your Unity project using the Needle Engine. Here are some steps you can follow to troubleshoot the issue:
-
Check for Missing References: Ensure that all the necessary components and references for the âFace Filterâ sample are correctly set up in your Unity project. Missing scripts or components can often lead to NullReferenceExceptions.
-
Unity Version Compatibility: Verify if the versions of Unity you are using (6000.0.8f1 and 2022.3.41f1) are compatible with the Needle Engine version you installed. Sometimes, specific features or components are only available in certain Unity versions.
-
Needle Engine Setup: Double-check that the Needle Engine is properly set up. Make sure youâve followed all the installation and setup instructions outlined in the documentation. This may include checking project settings such as WebGL support.
-
Unity Logs: Look at the Unity console for more detailed errors or warnings. You can also check the Editor logs for additional informationâthese might provide specific lines of code or components causing the issue.
-
Scene Configuration: Ensure the scene youâve added to âScenes in Buildâ is correctly configured with the necessary Needle Engine components. Sometimes, UI elements or any specific rendering settings might not be set up well.
-
Validation Checks: Follow the validation steps in the Needle Engine to ensure everything is in order. Sometimes, running validation can help determine if any components are missing.
If you can provide the output from the Unity logs or any additional errors, it will be easier to pinpoint the exact issue. Let me know if you need further assistance!
3 replies left
thread_9gWsEvCA9QcLMaAO8WZywS10
Reply to this message to continue the conversation