Debugging with unity
Use ‘Attach’ in MonoDevelop’s debug menu; you should be able to attach to the running Unity process that way. (You may need to ensure that the appropriate option is turned on in Unity’s preferences).
Use ‘Attach’ in MonoDevelop’s debug menu; you should be able to attach to the running Unity process that way. (You may need to ensure that the appropriate option is turned on in Unity’s preferences).
Short answer: yes, touch may be handled with Input.GetMouseButtonDown(). Input.GetMouseButtonDown(), Input.mousePosition, and associated functions work as tap on the touch screen (which is kind of odd, but welcome). If you don’t have a multi-touch game, this is a good way to keep the in-editor game functioning well while still keeping touch input for devices. (source: … Read more
Just thought I’d add this in case it helps anyone I used the Nuget for Unity asset (free) to import a package (websocketsharp) and it was really easy and painless. The references in VS worked immediately as well The package you’re trying to import naturally has to be compatible with Unity but that’s the same … Read more
The WWW API should get this done but UnityWebRequest replaced it so I will answer the newer API. It’s really simple. You have to use coroutine to do this with Unity’s API otherwise you have have to use one of C# standard web request API and Thread. With coroutine you can yield the request until … Read more
For future reference: It’s an issue with google play and x86 build that do not offers a 64bit counterpart code. Disabling x86 build fix this issue. Reference: https://forum.unity.com/threads/successful-unity-aab-build-not-compliant-with-the-google-play-64-bit-requirement.729035/ The problem started on 08/20/2019.
I wrote a blog article on this awhile back on my blog HERE for Visual Studio. However I will paste it here too: How to use Visual Studio 2013 Recently Microsoft bought and re-released the popular Unity3D plugin UnityVS. The now renamed Visual Studio Tools for Unity plugin smooths the connection between Unity and Visual … Read more
Found the problem. Below is the FIXED code that plays Video and Audio: //Raw Image to Show Video Images [Assign from the Editor] public RawImage image; //Video To Play [Assign from the Editor] public VideoClip videoToPlay; private VideoPlayer videoPlayer; private VideoSource videoSource; //Audio private AudioSource audioSource; // Use this for initialization void Start() { Application.runInBackground … Read more
Your first option is Microsoft Visual Studio for Mac which was released in 2017. If you’re used to VS ide then I suggested you download this. If not then you can have a look into MonoDevelop. You can download from here MRE = Mono Runtime Environment MDK = Mono Development Kit. MDK = MRE + … Read more
There are many ways to wait in Unity. They are really simple but I think it’s worth covering most ways to do it: 1.With a coroutine and WaitForSeconds. This is by far the simplest way. Put all the code that you need to wait for some time in a coroutine function then you can wait … Read more
If you still have the old copy of the project, upgrade the Unity project to Unity 2017 first then to 2018.2.2f1. Here are the few possible reasons you may get this error(Ordered from very likely) 1.Script name does not match class name. If script name is called MyClass, the class name must be MyClass. This … Read more