Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Manager : MonoBehaviour
- {
- public List<TestSO> m_sos = new List<TestSO>();
- // Start is called before the first frame update
- void Start()
- {
- }
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKey(KeyCode.Space))
- {
- var obj = (TestSO)ScriptableObject.CreateInstance("TestSO");
- m_sos.Add(obj);
- }
- }
- }
- public class TestSO : ScriptableObject
- {
- public float[] a1 = new float[1024];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement