why does the grid disappear after 1 second? thanks
TestGrid.cs
[Serializable]
public struct TestGrid
{
public int Unused;
}
Editor/TestGridEditor.cs
[CustomPropertyDrawer(typeof(DataGrid))]
public class TestGridEditor : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
tk2dGrid.Draw(position);
}
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
return EditorGUIUtility.singleLineHeight;
}
}