how to load the active scene unity
using UnityEngine.SceneManagement;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
void LoadScene()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
}
Also in C#:
- unity reset scene
- unity create gameobject
- c# arraylist to listview
- how to access the dictionary from another script in unity
- c# how to add newline on text box
- if get key down unity
- c# lambda expression
- add text to combobox c#
- how to add a componet to a gameobject throgh code unity
- compose graphql query string in c#
- c# pass mouse events to parent
- c# multiple catch exceptions
- Rigidbody.addforce
- top down movement unity
- c# double value with 2 decimal places
- c# list tuple
- c# keyvaluepair
- unity delete specific text in a string
- unity how to make a ui disappear
- Int64
- unity quaternion identity
- how to parse a string to an integer c#
- the request was aborted could not create ssl/tls secure channel. c# restsharp