GetScriptableObjectAutomatically assign a ScriptableObject file to this field. (First one found will be used)
Recommended to use it with Expandable!
-
(Optional)
EXP config: config. SeeSaints XPath-like Syntaxsection for more information.Note: You can change the default behavior of these attributes using
Window/Saints/Create or Edit SaintsField Config -
string pathSuffix=nullthe path suffix for thisScriptableObject.nullfor no limit. for example: if it's/Resources/mySo, it will only assign the file whose path is ends with/Resources/mySo.asset, likeAssets/proj/Resources/mySo.asset -
Allow Multiple: Yes
using SaintsField; [GetScriptableObject] public Scriptable mySo; [GetScriptableObject("RawResources/ScriptableIns")] public Scriptable mySoSuffix;
