Destroy object on collision or check position
In the scenario where multiple `rigidBody`s moving due to `addForce` goes out of view (say, top of view) and is no longer needed then what technique should be prefered? 1. Destroying the `gameObject`...
View ArticleHow to write a TextAsset to disk
I have implemented a `JSON` structure that stores game related data. This `JSON` file is stored in the `Resources` folder and I read it via `TextAsset` in this manner: TextAsset jsonText =...
View ArticleDontDestroyOnLoad but script being excuted multiple times
Lets say I have a scene called **MainMenuScene** in which I have a `GameObject`, say, **Datasource_GO**. On this I've assigned a script, say, **Datasource_CS.cs** whose contents can be simply: void...
View ArticleDestroy object on collision or check position
In the scenario where multiple `rigidBody`s moving due to `addForce` goes out of view (say, top of view) and is no longer needed then what technique should be prefered? 1. Destroying the `gameObject`...
View ArticleHow to write a TextAsset to disk
I have implemented a `JSON` structure that stores game related data. This `JSON` file is stored in the `Resources` folder and I read it via `TextAsset` in this manner: TextAsset jsonText =...
View ArticleDontDestroyOnLoad but script being excuted multiple times
Lets say I have a scene called **MainMenuScene** in which I have a `GameObject`, say, **Datasource_GO**. On this I've assigned a script, say, **Datasource_CS.cs** whose contents can be simply: void...
View Article
More Pages to Explore .....