EditorUtilities

Editor utility methods for UI components.

CreateInCanvas

Used for secure loading of a UI prefab. Checks if a Canvas and an EventSystem component exists in the scene and creates these in the scene if necessary. Then the UI prefab is instantiated under canvas as a child.

public static void CreateInCanvas(string name, Action callback)where T: UIBehaviour

Last updated