08-28-2019, 03:16 AM
Hi guys,
here is what I'm trying to achieve:
1. Create a ring of rectangles according to a circular spline
2. Create a bunch of these rings next to each other to create a cylinder of rectangles of rings
I have achieve the effect of this but however I cannot build the project on VR with oculus.
Before I build, console already outputs errors:
NullReferenceException: Object reference not set to an instance of an object
FluffyUnderware.Curvy.Generator.Modules.CreateGameObject.OnDestroy () (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:104)
UnityEngine.Object
estroyImmediate(Object)
FluffyUnderware.DevTools.PrefabPool
ush(GameObject) (at Assets/Plugins/DevTools/Components/PrefabPool.cs:227)
FluffyUnderware.Curvy.Generator.CGGameObjectResourceLoader
estroy(CGModule, Component, String, Boolean) (at Assets/Plugins/Curvy/Base/CG/CGResource.cs:255)
FluffyUnderware.Curvy.Generator.CGResourceHandler
estroyResource(CGModule, String, Component, String, Boolean) (at Assets/Plugins/Curvy/Base/CG/CGResource.cs:71)
FluffyUnderware.Curvy.Generator.CGModule
eleteManagedResource(String, Component, String, Boolean) (at Assets/Plugins/Curvy/Base/CG/CGModule.cs:609)
FluffyUnderware.Curvy.Generator.Modules.CreateGameObject:Clear() (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:122)
FluffyUnderware.Curvy.Generator.Modules.CreateGameObject:Refresh() (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:142)
FluffyUnderware.Curvy.Generator.CGModule:doRefresh() (at Assets/Plugins/Curvy/Base/CG/CGModule.cs:825)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Refresh(Boolean) (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:595)
and when I build, I get another reoccurring error message:
ID of 'Create GameObject_7_GameObject7_GO ring001' isn't unique!
UnityEngine.Debug:LogError(Object)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Initialize(Boolean) (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:530)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Update() (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:243)
For some context, the first ring of rectangles I got from step 1 I created a prefab of and fed into step 2 generator. The name of the prefab is called GO ring,
THANKS
here is what I'm trying to achieve:
1. Create a ring of rectangles according to a circular spline
2. Create a bunch of these rings next to each other to create a cylinder of rectangles of rings
I have achieve the effect of this but however I cannot build the project on VR with oculus.
Before I build, console already outputs errors:
NullReferenceException: Object reference not set to an instance of an object
FluffyUnderware.Curvy.Generator.Modules.CreateGameObject.OnDestroy () (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:104)
UnityEngine.Object

FluffyUnderware.DevTools.PrefabPool

FluffyUnderware.Curvy.Generator.CGGameObjectResourceLoader

FluffyUnderware.Curvy.Generator.CGResourceHandler

FluffyUnderware.Curvy.Generator.CGModule

FluffyUnderware.Curvy.Generator.Modules.CreateGameObject:Clear() (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:122)
FluffyUnderware.Curvy.Generator.Modules.CreateGameObject:Refresh() (at Assets/Plugins/Curvy/Base/CG Modules/CreateGameObject.cs:142)
FluffyUnderware.Curvy.Generator.CGModule:doRefresh() (at Assets/Plugins/Curvy/Base/CG/CGModule.cs:825)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Refresh(Boolean) (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:595)
and when I build, I get another reoccurring error message:
ID of 'Create GameObject_7_GameObject7_GO ring001' isn't unique!
UnityEngine.Debug:LogError(Object)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Initialize(Boolean) (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:530)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Update() (at Assets/Plugins/Curvy/Base/CG/CurvyGenerator.cs:243)
For some context, the first ring of rectangles I got from step 1 I created a prefab of and fed into step 2 generator. The name of the prefab is called GO ring,
THANKS