Quantcast
Channel: Latest Questions by staticVoidMan
Browsing all 6 articles
Browse latest View live

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 Article



How 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 Article

DontDestroyOnLoad 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

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 Article

How 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 Article


DontDestroyOnLoad 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
Browsing all 6 articles
Browse latest View live




Latest Images