Sunday, March 17, 2024
HomeiOS Developmentc# - Scriptable objects solely work within the editor, and do not...

c# – Scriptable objects solely work within the editor, and do not work once I construct


After I launch my sport within the Unity editor, my scriptable objects work :
This a part of my script :

skinsbgcreator[] doges = new skinsbgcreator[Resources.FindObjectsOfTypeAll(typeof(skinsbgcreator)).Length];
doges = Sources.FindObjectsOfTypeAll(typeof(skinsbgcreator)) as skinsbgcreator[];

offers me an array of 6 situations of my scriptable object skinsbgcreator.

However once I construct the sport for iOS, this a part of the script do not work anymore : it is like if the situations vanished. This array is empty.

So please are you aware what might be the rationale ? Inform me if you happen to want extra informations



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments