Show / Hide Table of Contents

Class ReadOnlyDrawer

This class contain custom drawer for ReadOnly attribute. Original code from : https://www.patrykgalach.com/2020/01/20/readonly-attribute-in-unity-editor/

Inheritance
System.Object
ReadOnlyDrawer
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class ReadOnlyDrawer : PropertyDrawer

Methods

OnGUI(Rect, SerializedProperty, GUIContent)

Unity method for drawing GUI in Editor.

Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾