Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating multiple object on changing transform
#4
Hi,
Your issue is caused by a restriction from the new Prefabs system, introduce in Unity 2018.3. If you look at the console, you will find the following two messages:
  • A message from Unity:
    InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed
  • And a message from Curvy that gives more details:
    [Curvy] Error while trying to destroy the object 'Create GameObject_40_GameObject40_Pole000'. This is probably because that object is part of a prefab instance, and Unity 2018.3 and beyond forbid deleting such objects without breaking the prefab link. Please remove the corresponding object from the prefab and try the faulty operation again.
So, this happens because in your prefab you included objects generated by the Curvy Generator. When generating the new objects, Curvy tries to destroy the old ones, but Unity does not allow it to.
So the solution is to not include the generated objects in your prefab, which is the right thing to do anyway, to avoid having huge prefabs. Removing the generated objects from the prefab will make your prefab way lighter, from 18Mo to 0.3Mo.

I will send you via mail the cleaned prefab.

Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Generating multiple object on changing transform - by _Aka_ - 06-28-2019, 07:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 1,161 09-23-2025, 09:33 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,467 02-04-2025, 09:30 PM
Last Post: _Aka_
  Updated package in 2022 LTS resulted in multiple errors scr33ner 2 2,008 01-13-2025, 09:32 AM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 2,077 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: