All Questions

10
votes
3answers
4013 views

How to detect click/touch events on UI and GameObjects

How to detect UI object on Canvas on Touch in android? For example, I have a canvas that have 5 objects such as Image, RawImage, Buttons, InputField and so on. When I touch on Button UI object The...
29
votes
5answers
28916 views

Serialize and Deserialize Json and Json Array in Unity

I have a list of items send from a PHP file to unity using WWW. The WWW.text looks like [{"playerId":"1","playerLoc":"Powai"},{"playerId":"2","playerLoc":"Andheri"},{"playerId":"3","playerLoc":"Church...
5
votes
1answers
2224 views

What is the best way to save game state?

I find the best way to save game data in Unity3D Game engine. At first, I serialize objects using BinaryFormatter. But I heard this way has some issues and is not suitable for save. So, What is the b...
6
votes
2answers
4793 views

Use Unity API from another Thread or call a function in the main Thread

My problem is I try to use Unity socket to implement something. Each time, when I get a new message I need to update it to the updattext(it is a Unity Text). However, When I do the following code, the...
22
votes
3answers
21657 views

Using new Unity VideoPlayer and VideoClip API to play video

MovieTexture is finally deprecated after Unity 5.6.0b1 release and new API that plays video on both Desktop and Mobile devices is now released. VideoPlayer and VideoClip can be used to play video and...
6
votes
1answers
22413 views

Unable to list target platforms. Please make sure the android sdk path is correct

I am trying to build old unity version(v_4.6.3) project. but i have got a error. already i have got successful result, but current my sdk is updated with latest version. http://screencast.com/t/u7lNi...
3
votes
1answers
3543 views

Using Resources Folder in Unity

I have am developing a HoloLens project that needs to reference .txt files. I have the files stored in Unity's 'Resources' folder and have them working perfectly fine (when run via Unity): string ba...
4
votes
2answers
1884 views

Unity: Null while making new class instance

I got stuck in pretty dumb situation: I'm making new instance of the generic class but it returns "weird" null. Rule rule2 = new Rule(); // initiate the class Debug.Log(rule2); //1st debug ...
3
votes
3answers
886 views

Move GameObject over time

I am learning Unity from a Swift SpriteKit background where moving a sprite's x Position is as straight forward as an running an action as below: let moveLeft = SKAction.moveToX(self.frame.width/5, d...
7
votes
3answers
6146 views

Too many field references: 70613; max is 65536

My project uses these plugins: OneSignal GooglePlayServices Adjust Google Analytics Unity IAP Facebook SDK Those plugins are used in almost every project. But I am over field references count T...

Previous Next