Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a ring of rectangles, then create series of rings to create a cylinder
#1
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.ObjectBig GrinestroyImmediate(Object)
FluffyUnderware.DevTools.PrefabPoolTongueush(GameObject) (at Assets/Plugins/DevTools/Components/PrefabPool.cs:227)
FluffyUnderware.Curvy.Generator.CGGameObjectResourceLoaderBig Grinestroy(CGModule, Component, String, Boolean) (at Assets/Plugins/Curvy/Base/CG/CGResource.cs:255)
FluffyUnderware.Curvy.Generator.CGResourceHandlerBig GrinestroyResource(CGModule, String, Component, String, Boolean) (at Assets/Plugins/Curvy/Base/CG/CGResource.cs:71)
FluffyUnderware.Curvy.Generator.CGModuleBig GrineleteManagedResource(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
Reply


Messages In This Thread
Creating a ring of rectangles, then create series of rings to create a cylinder - by mchangxe - 08-28-2019, 03:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating splines at run time jamesunity 6 225 07-17-2020, 10:17 PM
Last Post: jamesunity
  Letting users create and edit splines at runtime skote 1 124 07-12-2020, 04:49 PM
Last Post: _Aka_
  How to create exactly N gameobjects at spline? ThomasTheTank 1 240 05-24-2020, 01:56 PM
Last Post: _Aka_
  Create collidable 2D at runtime honkel 1 359 04-17-2020, 02:20 PM
Last Post: _Aka_

Forum Jump: