protected override void GetProperties(SerializedProperty _property) { base.GetProperties(_property); boldStyle = new GUIStyle { fontStyle = FontStyle.Bold, }; //get property values unitAITriggers = _property.FindPropertyRelative("unitAITriggers"); source = fieldInfo.GetValue(_property.serializedObject.targetObject) as UnitAITriggerContainer; triggerSource = source.unitAITriggers; aiSource = _property.serializedObject.targetObject as UnitAI; equipSource = aiSource.GetComponent <UnitEquip>(); }