protected void ColourFields() { EditorGUILayout.BeginHorizontal(); GUILayout.Label("Axis Colors"); grid = target as UIRectGrid; grid.axisColors = EditorGUILayout.ColorField(grid.axisColors); EditorGUILayout.EndHorizontal(); }
protected void SpacingFields() { UIRectGrid rGrid = (UIRectGrid)target; rGrid.spacing = EditorGUILayout.Vector3Field("Spacing", rGrid.spacing); }
void OnEnable() { grid = target as UIRectGrid; showDrawSettings = EditorPrefs.HasKey("GFGridShowDraw") ? EditorPrefs.GetBool("GFGridShowDraw") : true; }
public TransformCache(UIRectGrid grid) { _gridTransform = grid.transform; Recache(); }