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. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Generating GO only on CPs in Generator GameDeveloperek4123 1 7 03-04-2024, 11:06 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_
  Removing the objects behind an object alms94 6 6 12-06-2023, 09:31 PM
Last Post: _Aka_

Forum Jump: