Assets/CustomInspectorCreator/Editor/Utilities/Generator.cs
/// <summary>
/// This method will edit the two strings for ClassFieldType and OnEnableBody as well as add PropertyField to OnInspectorGUI.
/// </summary>
This method will edit the two strings for ClassFieldType and OnEnableBody as well as add PropertyField to OnInspectorGUI.
This method will edit the two strings for ClassFieldType and OnEnableBody as well as add PropertyField to OnInspectorGUI .
private string GoBackAndAddSerializedProperty(string name)
        {
            didHaveProps = true;
            string ammendMemberDeclarations = AmmendMemberDeclarations(name);
            classTypeField = $"{classTypeField}{ammendMemberDeclarations}";
            string ammendOnEnable = AmmendOnEnable(name);
            onEnableBody = $"{onEnableBody}{ammendOnEnable}";
            return GenerateEditorGUILayoutForSerializedProperty(name);
        }
private string GoBackAndAddSerializedProperty ( string name ) { didHaveProps = true ; string ammendMemberDeclarations = AmmendMemberDeclarations ( name ) ; classTypeField = $" { classTypeField } { ammendMemberDeclarations } " ; string ammendOnEnable = AmmendOnEnable ( name ) ; onEnableBody = $" { onEnableBody } { ammendOnEnable } " ; return GenerateEditorGUILayoutForSerializedProperty ( name ) ; }
This method will edit the two strings for ClassFieldType and OnEnableBody as well as add PropertyField to OnInspectorGUI.
This method will edit the two strings for ClassFieldType and OnEnableBody as well as add PropertyField to OnInspectorGUI .
name
string