Quantcast
Channel: Latest Questions by Napoleonite
Browsing latest articles
Browse All 12 View Live

MouseDrag vs mouseDrag?

![alt text][1] What's the difference between all of those? I'm using Unity5. [1]: /storage/temp/42705-mousedrag.png

View Article



Control UI button through keyboard?

I have 10 buttons (like a hotbar). But I don't want to use a mouse ingame. So I need to make the buttons respond to the key-presses 0-9. *Note: I DON'T want to attach some code to the onclick event. I...

View Article

Child-objects are not properly 'transformed' with parent

It's hard to explain so I made a quick video: https://youtu.be/F8cTXPTTljs Note that the position works correctly when the grid is placed at the world-origin. I recreated the problem with 2 simple...

View Article

[2D] Get 0-359 compass angle player object

The closest I could find on the answerhub was: float AngleBetweenMouseAndPlayer() { Vector3 v3Pos; float fAngle; //Convert the player to Screen coordinates v3Pos =...

View Article

Update() is only called once?

public class testa : testb { void Update () { Debug.LogWarning("TestA's update"); } } // This one is attached to an empty gameobject in the scene public class testb : MonoBehaviour { void Update () {...

View Article


Copy binary file from resources to PersistentDataPath

I have a database in "Assets/Resources/db.sqlite" and I want to copy this to the PersistentDataStorage if it doesn't already exist there (Windows, Android and IOS): private const string DatabaseName =...

View Article

Send WebRequest with Dto/object in body

How do I send dto's (or any serializable class) to/from the server? The server doesn't use strings but uses dto's instead. I tried an upload handler and various tutorials and manuals but none work for...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>