Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when trying to connect nodes in prefab edit mode
#5
Hi

Creating connections while in prefab mode is not allowed. This is an unfortunate consequence of how things were designed initially:
The issue comes from the fact that connections are stored in a separate object, the _CurvyGlobal_ object which has a component of type CurvyGlobalManager. Because of this, creating a connection in prefab mode is not allowed, since it would modify an object that exists outside of the prefab.

A work around for this limitation could be to make your script check if it is running in prefab mode (PrefabStageUtility.GetCurrentPrefabStage() != null) and create the connections only when not in prefab mode.

The error message you got was misleading. Sorry for that, I will correct the message in the next update.

Did this help?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Error when trying to connect nodes in prefab edit mode - by _Aka_ - 06-02-2023, 10:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Support for "Fast Enter Play Mode" via "No Domain Reload" XtroTheArctic 5 9 11-27-2023, 12:03 PM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 1 8 10-04-2023, 09:50 AM
Last Post: _Aka_
  Raise spline events during edit mode arcadeperfect 3 9 08-24-2023, 08:38 AM
Last Post: _Aka_
  Custom Control Nodes Lupos 3 14 05-27-2023, 09:05 PM
Last Post: _Aka_

Forum Jump: