Question by
z0code0z · Nov 11, 2019 at 03:00 PM ·
c#instantiatemonobehaviourinstancescriptable object
What does 'new' do in terms of constructors
Hello!
I am just wondering if using the standard 'new' constructor for instancing a script turns it into a game object, or?
Simply, what does the 'new' constructor do when trying to instance a non mono behavior script!
Thanks for any help!
Comment
Answer by NegiMox · Nov 09, 2019 at 05:22 AM
Hey,i myself dont know much about creating new non mono behavior script but this might help: https://learn.unity.com/tutorial/introduction-to-scriptable-objects
um wow... thats awesome! i have no idea how you found that when i've been looking for hours!
It doesn't really answer the original question but for now i'll just use that until i find out what 'new' does!
thanks