Skip to content

SubassetsEditorUtility

Namespace: SideXP.Core.EditorOnly

public static class SubassetsEditorUtility

Miscellaneous utility functions for working with subassets in the editor.

Methods

GetAllowedSubassetsInfos(Type)

public static Dictionary<Type, GUIContent> GetAllowedSubassetsInfos(Type subassetsBaseType)

Gets the list of the types that can be selected to create a subasset.

Parameters

  • subassetsBaseType: The expected base type of the subassets that can be assigned to the list. That this type must derive from ScriptableObject.

Returns

Returns the informations about the allowed subassets, where keys are the types, and values are the display names.