03-30-2021, 07:33 PM
Hello
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
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 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
Code:
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?