Skip to content

Using Ami.BroAudio namespace and SoundID variable prevents prefab from dirtying #58

@jungaboon

Description

@jungaboon
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions