Question by
faheemarshad · Feb 21, 2017 at 07:16 PM ·
scripting problemcanvasscene-switching
I'm facing issue in creating a MainMenu of a 2D Game in Unity 5.5
Hello, All, I'm using Unity5.5.0f3 and I'm trying to create a MainMenu via Canvas with a link to button. How can i do it? I tried the tutorial but it looks like there is always a difference in every version of Unity from 5.3.0f3 to 5.5.0f3. Guide me guys whether with script via change scene or via making a canvas with scripting. thanks
Comment
What are you referring to as a link? Are you referring to opening a web url? If so, you can use Application.OpenURL("url") for opening a web browser. If not you'll have to add a little more detail into what you are hoping for.
https://docs.unity3d.com/ScriptReference/Application.OpenURL.html
Are you trying to reference the Button in a script?
If so you need to put
using UnityEngine.UI;
at the top of your script