Pathfinding.GraphEditor.OnBaseInspectorGUI C# (CSharp) Method

OnBaseInspectorGUI() public method

public OnBaseInspectorGUI ( NavGraph target ) : void
target NavGraph
return void
        public void OnBaseInspectorGUI(NavGraph target)
        {
            int penalty = EditorGUILayout.IntField (new GUIContent ("Initial Penalty","Initial Penalty for nodes in this graph. Set during Scan."),(int)target.initialPenalty);
            if (penalty < 0) penalty = 0;
            target.initialPenalty = (uint)penalty;
        }