Hi guys, i yet learning unity tutorials. i can share sometimes for development tutorials on my blog site.

First sharing for the C# Scripting on Unity Scenes.
If you have multi scenes,  if you required sometimes can change scene. 

Okay.

Project > Assets> Left Click > Create > C# Script > SceneManagement.cs 

I think for this, you press C to change to Scene.

Code;

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneManagement : MonoBehaviour
{
    void Start()
    {
        if (Input.GetKeyDown(KeyCode.C))
        {
            Application.LoadLevel("MainScene");
        }
    }

void Update()
    {  
    }
}

Bu makaleyi paylaşın:

3 Comments

Bir yorum bırakın