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...ml#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
  Curvy Physics Disconnects on Mobile dcrosby 2 120 06-22-2018, 02:21 AM
Last Post: dcrosby
Information Curvy 2.3.0 is live _Aka_ 2 162 06-12-2018, 01:03 PM
Last Post: _Aka_
  Problems by upgrading from Curvy 2.2.2 to 2.2.4.1 metroidsnes 2 189 05-06-2018, 07:32 PM
Last Post: _Aka_
Exclamation Curvy is on sale : -30% until 5/11 23:59 PST _Aka_ 0 111 05-02-2018, 11:30 AM
Last Post: _Aka_

Forum Jump: