Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to send event to generated game object upon ControlPoint deletion?
#4
It is a bit complicated:
I am assuming that you are using the Create GameObject module to create the sleepers. In that case, your module uses in play mode a pool to reuse instances of your sleepers, for performance reasons. The deleted sleepers are pushed, again in play mode, to the pool. Before pushing them, it calls the IPoolable.OnBeforePush if any. So add to your sleepers a script that implements the IPoolable interface, and put your behaviour in the OnBeforePush method.
Did this help?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: How to send event to generated game object upon ControlPoint deletion? - by _Aka_ - 12-02-2021, 11:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 868 09-23-2025, 09:33 AM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,067 06-07-2025, 09:44 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 2,883 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,638 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: