using Ami.BroAudio;
using UnityEngine;
public class PrefabTestingScript : MonoBehaviour
{
[SerializeField] private float testValue1;
[SerializeField] private int testValue2;
[SerializeField] private string testValue3;
[SerializeField] private SoundID sfx;
}
Tested on Unity 2021 and 2022 with BroAudio 3.1.2. If a SoundID variable is added to a script, changes made to other variables in the Inspector doesn't dirty the scene in Prefab View which prevents the user from saving changes.
Tested with just the float, int, and string values on their own in a new cube prefab scene. Changes to variables cause the scene to dirty and allows for saving. Once the SoundID variable is added, changes to those other variables are no longer recorded. However, making a change to the SoundID causes the scene to dirty and allows for saving.
Tested on Unity 2021 and 2022 with BroAudio 3.1.2. If a SoundID variable is added to a script, changes made to other variables in the Inspector doesn't dirty the scene in Prefab View which prevents the user from saving changes.
Tested with just the float, int, and string values on their own in a new cube prefab scene. Changes to variables cause the scene to dirty and allows for saving. Once the SoundID variable is added, changes to those other variables are no longer recorded. However, making a change to the SoundID causes the scene to dirty and allows for saving.