/// <summary> /// Callback for when the delete button in the scene variable tab is clicked /// </summary> /// <param name="variableListProp">The property that the deletion took place on</param> /// <param name="index">The index of the element to be deleted</param> internal void DeleteVariable(SerializedProperty variableListProp, int index) { serializedManager.Update(); SerializedVariables.DeleteVariable(index); serializedManager.ApplyModifiedProperties(); AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(TargetManager)); }
internal void CreateNewVariable(string name, System.Type typeToCreate) { SerializedVariables.CreateNewVariable(name, typeToCreate); }