- 2
- 154
Elzyxtt
United States
เข้าร่วมเมื่อ 5 ก.ย. 2021
How to make a Level/Scene Loader in Unity using UI
Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour {
public void PlayGame ()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
public void QuitGame ()
{
Debug.Log("QUIT!!!");
Application.Quit();
}
}
#howtomake #unity #unitygamedev #ui #unityui #videogames #unityhowto #howtouseunity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour {
public void PlayGame ()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
public void QuitGame ()
{
Debug.Log("QUIT!!!");
Application.Quit();
}
}
#howtomake #unity #unitygamedev #ui #unityui #videogames #unityhowto #howtouseunity
มุมมอง: 120
วีดีโอ
How to add Hit Sounds to your gtag fan game
มุมมอง 363 หลายเดือนก่อน
discord.gg/C4XpBjbrdy Unknown Apes discord for the hit sounds
How you been?
Good, thank you!
first commet