Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to get objects script from generator
#8
The zips I attached are examples of how pooled objects can have an initialization code called when taken out of the pool (using OnEnable, and the pool's "Auto Enable/Disable Items" option (set by default to true).
Also, an external script will call specific code of the pooled objects (your preview code) when the module is refreshed.
Also in the case of the mesh deformation example, the script from the input gameobject is applied on the output game objects.
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Way to get objects script from generator - by _Aka_ - 05-18-2023, 07:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rotate generator asteroids patndan74 6 4,329 05-08-2025, 10:07 PM
Last Post: _Aka_
  Method of scattering objects along spline joebain 1 1,635 11-26-2024, 03:20 PM
Last Post: _Aka_
  making objects solid cielpandapie 1 1,537 10-18-2024, 12:17 AM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 3,384 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: