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
#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


Messages In This Thread
RE: if part of curvy hierarchy is selected, but root is not enabled, errors happen - by hawken - 01-15-2018, 07:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp

Forum Jump: