예제 #1
0
 protected void ColourFields()
 {
     EditorGUILayout.BeginHorizontal();
     GUILayout.Label("Axis Colors");
     grid            = target as UIRectGrid;
     grid.axisColors = EditorGUILayout.ColorField(grid.axisColors);
     EditorGUILayout.EndHorizontal();
 }
예제 #2
0
    protected void SpacingFields()
    {
        UIRectGrid rGrid = (UIRectGrid)target;

        rGrid.spacing = EditorGUILayout.Vector3Field("Spacing", rGrid.spacing);
    }
예제 #3
0
 void OnEnable()
 {
     grid             = target as UIRectGrid;
     showDrawSettings = EditorPrefs.HasKey("GFGridShowDraw") ? EditorPrefs.GetBool("GFGridShowDraw") : true;
 }
예제 #4
0
 public TransformCache(UIRectGrid grid)
 {
     _gridTransform = grid.transform;
     Recache();
 }