Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if part of curvy hierarchy is selected, but root is not enabled, errors happen
#1
Bug 
I get a few errors in the console.

If I run the scene (which has code to enable and disable gameobjects) sometime curvy will DELETE whatever is selected from the generator. This is permanent.
Reply
#2
To elaborate on this, I found a re-creatable case:

1. make a generator with a path and extrusion.

2. deactivate the root gameobject

3. run the scene

4. activate the root gameobject, select something in this root (shape extrusion for example)

5. stop the scene

The shape extrusion will be deleted from the generator with the error:

Code:
[DevTools] FloatRegionPropertyDrawer: Unable to find property 'RangeOptions'! (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at FluffyUnderware.Curvy.Generator.CGModuleInputSlot.LoadLinkedSlots () [0x00007] in Assets/Packages/Curvy/Base/CG/CGModuleSlot.cs:194
  at FluffyUnderware.Curvy.Generator.CGModuleSlot.get_LinkedSlots () [0x0000d] in Assets/Packages/Curvy/Base/CG/CGModuleSlot.cs:78
  at FluffyUnderware.Curvy.Generator.CGModuleSlot.get_IsLinked () [0x00002] in Assets/Packages/Curvy/Base/CG/CGModuleSlot.cs:42
  at FluffyUnderware.Curvy.Generator.Modules.BuildShapeExtrusion.get_ClampPath () [0x00007] in Assets/Packages/Curvy/Base/CG Modules/BuildShapeExtrusion.cs:531
  at FluffyUnderware.Curvy.Generator.Modules.BuildShapeExtrusion.get_RangeOptions () [0x00002] in Assets/Packages/Curvy/Base/CG Modules/BuildShapeExtrusion.cs:538
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232
  at System.Reflection.MonoProperty.GetValue (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0003b] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:297
  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:283
  at FluffyUnderware.DevToolsEditor.FloatRegionPropertyDrawer.Init (UnityEditor.SerializedProperty property) [0x0006a] in Assets/Packages/DevTools/Editor/PropertyDrawers.cs:958 )
UnityEngine.Debug:LogError(Object)
FluffyUnderware.DevTools.DTLog:LogError(Object) (at Assets/Packages/DevTools/Classes/DTUtility.cs:786)
FluffyUnderware.DevToolsEditor.FloatRegionPropertyDrawer:Init(SerializedProperty) (at Assets/Packages/DevTools/Editor/PropertyDrawers.cs:964)
FluffyUnderware.DevToolsEditor.FloatRegionPropertyDrawer:GetPropertyHeight(SerializedProperty, GUIContent) (at Assets/Packages/DevTools/Editor/PropertyDrawers.cs:758)
UnityEditor.EditorGUILayout:PropertyField(SerializedProperty, Boolean, GUILayoutOption[])
FluffyUnderware.DevToolsEditor.DTInspectorNodeDefaultRenderer:RenderField(DTFieldNode) (at Assets/Packages/DevTools/Editor/DTEditorClasses.cs:752)
FluffyUnderware.DevToolsEditor.DTEditor`1:renderNode(DTInspectorNode) (at Assets/Packages/DevTools/Editor/DTEditor.cs:414)
FluffyUnderware.DevToolsEditor.DTEditor`1:renderNode(DTInspectorNode) (at Assets/Packages/DevTools/Editor/DTEditor.cs:453)
FluffyUnderware.DevToolsEditor.DTEditor`1:RenderGUI(Boolean) (at Assets/Packages/DevTools/Editor/DTEditor.cs:153)
FluffyUnderware.DevToolsEditor.DTEditor`1:OnInspectorGUI() (at Assets/Packages/DevTools/Editor/DTEditor.cs:130)
FluffyUnderware.CurvyEditor.Generator.CGModuleEditorBase:OnInspectorGUI() (at Assets/Packages/Curvy/Base/Editor/CG/CGModuleEditor.cs:128)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Reply
#3
Solution available here:
https://forum.curvyeditor.com/thread-493-post-1728.html#pid1728
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 0 0 8 hours ago
Last Post: ShiroeYamamoto
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 4 Yesterday, 07:25 AM
Last Post: amutp
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 0 6 Yesterday, 03:23 AM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_

Forum Jump: