You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using CSG (Constructive Solid Geometry) to create a mesh on runtime. The mesh is given a MeshCollider component and collisions work fine. I tried to add an InkCanvas component but it was causing an exception. NullReferenceException: Object reference not set to an instance of an object Es.InkPainter.InkCanvas.InitPropertyID () (at Assets/InkPainter/Script/Core/InkCanvas.cs:323) Es.InkPainter.InkCanvas.Awake () (at Assets/InkPainter/Script/Core/InkCanvas.cs:265) UnityEngine.GameObject:AddComponent() ObstacleGeneratorV2:Start() (at Assets/Scripts/ObstacleGeneratorV2.cs:26)
The InkCanvas is added after the MeshCollider. Here is a part of the code:
I am using CSG (Constructive Solid Geometry) to create a mesh on runtime. The mesh is given a MeshCollider component and collisions work fine. I tried to add an InkCanvas component but it was causing an exception.
NullReferenceException: Object reference not set to an instance of an object Es.InkPainter.InkCanvas.InitPropertyID () (at Assets/InkPainter/Script/Core/InkCanvas.cs:323) Es.InkPainter.InkCanvas.Awake () (at Assets/InkPainter/Script/Core/InkCanvas.cs:265) UnityEngine.GameObject:AddComponent() ObstacleGeneratorV2:Start() (at Assets/Scripts/ObstacleGeneratorV2.cs:26)
The InkCanvas is added after the MeshCollider. Here is a part of the code:
Am I adding the component wrong or it's not possible for it to be added on runtime.
The text was updated successfully, but these errors were encountered: