Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding function to set GameObjecs in InputGameObject.cs

I want to add InputGameObject module to generator through code. and then i want to add list of game objects to it. every thing fine until i tried to add the list of game objects to the module . the property for game objects is get only and i cant set a list to it. 
So I added function to add the game objects to the module and i added it in InputGameObject.cs script as follow

  public void InitGameObjectList(List<CGGameObjectProperties> lstObjects)
            m_GameObjects = lstObjects;

every thing is now working perfect i can add list of objects to it , But i want to make sure that if this function will have problems if i call it at runtime or it will cause issues to the generator at later point?
I don't advise you to do that. Do this instead:
If you have any issue with this let me know.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Super , Thanks allot for the advice  Big Grin

Possibly Related Threads…
Thread Author Replies Views Last Post
  Does Curvy has gameobjects pooling system function? Chanon 7 13 09-07-2023, 12:43 PM
Last Post: _Aka_
  Adding Begining and End Mesh to Spline velikizlivuk 2 4 08-02-2023, 11:10 AM
Last Post: velikizlivuk
  Adding a CP breaks the mesh lethekun 3 6 05-25-2022, 01:53 AM
Last Post: _Aka_
  Any plan of adding a way to group nodes in the TrackGenerator? niuage 2 5 03-06-2022, 02:03 PM
Last Post: _Aka_

Forum Jump: