Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to load the active scene unity

using UnityEngine.SceneManagement;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
	void LoadScene()
    {
    	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: vb.net messagebox yes no cancel 
Csharp :: how to make mouse invisible unity 
Csharp :: unity scene load 
Csharp :: c# hello world program 
Csharp :: split on uppercase c# 
Csharp :: unity cycle children 
Csharp :: c# replace all non numeric characters 
Csharp :: unity float from another script 
Csharp :: draw sphere gizmo unity 
Csharp :: unity button onclick remove listener 
Csharp :: unity get all by tag 
Csharp :: Unity c# how to restart the level 
Csharp :: fade text unity 
Csharp :: c# error messagebox 
Csharp :: json ignore property c# 
Csharp :: unity how to copy something to the clipboard 
Csharp :: Program for factorial of a number in c# 
Csharp :: unity move left and right 
Csharp :: c# get all bytes of a file 
Csharp :: how to move mouse in game c# 
Csharp :: Csharp cast string to double 
Csharp :: unity get current scene 
Csharp :: byte array to hex c# 
Csharp :: how to change scenes with button press in unity c# 
Csharp :: asp.net list all files in folder 
Csharp :: c# string to datetime 
Csharp :: unity projectile spread 
Csharp :: c# double value with 2 decimal places 
Csharp :: dynamics 365 update record c# 
Csharp :: UnityEngine.Transform.get_position () (at <a0ef933b1aa54b668801ea864e4204fe:0) Gamekit3D.MeleeWeapon.BeginAttack (System.Boolean thowingAttack) 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =