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

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.

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
  Disable rebuild of meshes in dynamic mode Zilk1 3 12 05-27-2024, 08:14 AM
Last Post: _Aka_
  playmaker integration error DNeville 5 8 05-23-2024, 07:01 AM
Last Post: _Aka_
  Support for "Fast Enter Play Mode" via "No Domain Reload" XtroTheArctic 5 9 11-27-2023, 12:03 PM
Last Post: _Aka_
  Raise spline events during edit mode arcadeperfect 3 9 08-24-2023, 08:38 AM
Last Post: _Aka_

Forum Jump: