Skip to content

Instantly share code, notes, and snippets.

@keijiro
Created October 24, 2016 05:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/e828b55c431b2e5ca8b438ca118034da to your computer and use it in GitHub Desktop.
Save keijiro/e828b55c431b2e5ca8b438ca118034da to your computer and use it in GitHub Desktop.
Load scene out node for Klak
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Klak.Wiring
{
[AddComponentMenu("Klak/Wiring/Output/Load Scene")]
public class LoadSceneOut : NodeBase
{
[SerializeField] string _sceneName;
[Inlet]
public void Load()
{
SceneManager.LoadScene(_sceneName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment