Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DecoratorDrawer.OnGUI

public void OnGUI(Rect position);

Parameters

position Rectangle on the screen to use for the decorator GUI.

Description

Override this method to make your own GUI for the decorator. See DecoratorDrawer for an example of how to use this.