[CustomView]
Parameters
Parameter Name
Arguments
Description
Examples
using UnityEngine;
using RenownedGames.Apex;
public class CustomViewExample : MonoBehaviour
{
[CustomView(OnGUI = "DrawMyField", GetHeight = "GetMyFieldHeight")]
public string myField;
private void DrawMyField(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.LabelField(position, label.text, "Custom Draw: " + property.stringValue);
}
private float GetMyFieldHeight(SerializedProperty property, GUIContent label)
{
return EditorGUIUtility.singleLineHeight;
}
}Last updated