> For the complete documentation index, see [llms.txt](https://sercan-altundas.gitbook.io/asset-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sercan-altundas.gitbook.io/asset-store/ui-components/common/editorutilities.md).

# 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.

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