Summary
Creates a
UnityEngine.GUIStyle
using the provided delegate and caches it so the same style can be
returned when this method is called again for the same delegate.
- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor - Containing Type
- IGEditorUtils
Syntax
public static GUIStyle GetCachedStyle(Func<GUIStyle> createStyle)
Remarks
This method allows you to create custom styles without needing to make a new field to store them in.
Parameters
Name | Type | Description |
---|---|---|
createStyle | Func |
Return Value
Type | Description |
---|---|
GUIStyle |