Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SOExample behaviour
using UnityEngine;
using System.Collections;
public class SOExampleBehaviour : MonoBehaviour
public SOExample test;
public void OnEnable()
// instantiate if needed
if (test == null)
test = ScriptableObject.CreateInstance<SOExample>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment