Placeholder-Software / Dissonance

Unity Voice Chat Asset
71 stars 5 forks source link

[bug] DissonanceComms Access Tokens dropdown immediately closes #179

Closed Alexees closed 4 years ago

Alexees commented 4 years ago

Context

Selecting the DissonanceSetup prefab and opening the Access Tokens Dropdown on the DissonanceComms component immediately closes it again.

Expected Behavior

stays open

Actual Behavior

closes immediately

Workaround

edit mode

Your Environment

martindevans commented 4 years ago

Thanks for reporting this. It seems to be caused by a change in how Unity manages the lifetime of inspectors which means ephemeral state (e.g. foldout state) can no longer be stored in the inspector itself.

I'm working on a full fix for this right now. Until that's released a workaround is to comment out this block in Assets\Plugins\Dissonance\Editor\TokenControl.cs:

if (_foldout)
{
    _showAccessTokens = EditorGUILayout.Foldout(_showAccessTokens, "Access Tokens");
    if (!_showAccessTokens)
        return;
}

This will cause the access token section to always be expanded.

martindevans commented 4 years ago

This change appears to only affect Prefabs. So another workaround for similar issues is to add the prefab to a scene, change it, apply the changes to the prefab and delete it from the scene.

martindevans commented 4 years ago

Dissonance 6.4.5 is now on the asset store, it should fix this issue.