public override void OnInspectorGUI() { RATCalibrationData data = (RATCalibrationData)target; DrawDefaultInspector(); if (data.calibration != null && GUILayout.Button("Reload Calibration Data")) { data.LoadAsset(); } EditorGUILayout.LabelField("Loaded: " + data.IsLoaded); }
void Start() { calibrationData = GetComponent <RATCalibrationData>(); }