IsValid() public abstract method

Determines whether this instance is valid or not. If log == true, will log a warning message in case of an invalid solver.
public abstract IsValid ( bool log ) : bool
log bool
return bool
Example #1
0
		protected virtual void AddWarningBox(IKSolver solver) {
			EditorGUILayout.Space();
			EditorGUILayout.BeginHorizontal("Box");
			
			EditorGUILayout.LabelField("Invalid/incomplete setup, can't initiate solver.");
			
			if (GUILayout.Button("What's wrong?")) {
				Warning.logged = false;
				solver.IsValid(true);
			}
			
			EditorGUILayout.EndHorizontal();
			EditorGUILayout.Space();
		}
Example #2
0
        protected virtual void AddWarningBox(IKSolver solver)
        {
            EditorGUILayout.Space();
            EditorGUILayout.BeginHorizontal("Box");

            EditorGUILayout.LabelField("Invalid/incomplete setup, can't initiate solver.");

            if (GUILayout.Button("What's wrong?"))
            {
                Warning.logged = false;
                solver.IsValid(true);
            }

            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();
        }