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
  Raise spline events during edit mode arcadeperfect 3 6 08-24-2023, 08:38 AM
Last Post: _Aka_
  Custom Control Nodes Lupos 3 13 05-27-2023, 09:05 PM
Last Post: _Aka_
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 6 806 04-10-2023, 10:18 PM
Last Post: _Aka_
Exclamation Stack overflow when editing prefab containing splines rhys_vdw 5 23 04-10-2023, 10:17 PM
Last Post: _Aka_

Forum Jump: