IGEditorUtils.

GetCachedStyle(Func<GUIStyle>) Method

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.

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<GUIStyle>

Return Value

Type Description
GUIStyle