protected void DisplaySpacePosition(ref FP_Space space, SerializedProperty spaceRef, FP_InputVector3 inputVector3, string name) { EditorGUILayout.LabelField(name, EditorStyles.boldLabel); EditorGUILayout.BeginVertical(GUI.skin.button); DisplaySpace(ref space, spaceRef); DisplayInputVector3(inputVector3); EditorGUILayout.EndVertical(); }
protected void DisplaySpacePositionTarget(ref FP_Space space, SerializedProperty spaceRef, FP_InputVector3 inputVector3, string name, ref bool target) { EditorGUILayout.LabelField(name, EditorStyles.boldLabel); EditorGUILayout.BeginVertical(GUI.skin.button); DisplaySpace(ref space, spaceRef); target = GUILayout.Toggle(target, "Target", GUILayout.ExpandWidth(false)); DisplayInputVector3(inputVector3); EditorGUILayout.EndVertical(); }
protected void DisplayInputVector3(FP_InputVector3 inputVector3) { DisplayInputFloat(inputVector3._x, "X"); DisplayInputFloat(inputVector3._y, "Y"); DisplayInputFloat(inputVector3._z, "Z"); }