Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack overflow when editing prefab containing splines
#3
Ah, I think so? Our artists just followed this tutorial adding objects to the prefab in prefab editor mode.

https://youtu.be/eP6QEn9SFoM

Then when I checked out her changes and opened the prefab it started happening.

She noted that when she was adding splines to the prefab that it was modifying the open game scene in the background (creating your global manager singleton).

It doesn't seem feasible that we would add manager singleton to every prefab, and this is apparently required for editing the spline. I can see looking at the code that your singleton is trying to force creation of object the editor, succeeding, but failing to find it. The new singleton also calls `Instance` in its `Awake`. We do have the branch around if you need me to investigate more, but I don't expect to continue using this product at this time.

I don't think it's appropriate for an editor tool to make scene modifications during edit mode (unless it's using the correct hide flags: https://docs.unity3d.com/ScriptReference/Object-hideFlags.html).
Reply


Messages In This Thread
RE: Stack overflow when editing prefab containing splines - by rhys_vdw - 11-30-2022, 05:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Twisting Splines ZiggZagg 2 2 43 minutes ago
Last Post: ZiggZagg
  Help with procedural roads and splines ramiroflores 1 4 05-07-2024, 08:57 AM
Last Post: _Aka_
Information New free asset: Converter For Unity Splines _Aka_ 5 19 04-25-2024, 11:11 AM
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_

Forum Jump: