Hide
GetScriptableObject

Automatically assign a ScriptableObject file to this field. (First one found will be used)

Recommended to use it with Expandable!

  • (Optional) EXP config: config. See Saints XPath-like Syntax section for more information.

    Note: You can change the default behavior of these attributes using Window/Saints/Create or Edit SaintsField Config

  • string pathSuffix=null the path suffix for this ScriptableObject. null for no limit. for example: if it's /Resources/mySo, it will only assign the file whose path is ends with /Resources/mySo.asset, like Assets/proj/Resources/mySo.asset

  • Allow Multiple: Yes

using SaintsField; [GetScriptableObject] public Scriptable mySo; [GetScriptableObject("RawResources/ScriptableIns")] public Scriptable mySoSuffix;

GetScriptableObject