ExtendRealityLtd / Tilia.Interactions.Interactables.Unity

A variety of mechanisms for interacting between interactors and interactables in a spatial scene for the Unity software
MIT License
9 stars 3 forks source link

fix(Configurator): catch error on destroy nested prefabs #153

Closed thestonefox closed 1 year ago

thestonefox commented 1 year ago

Older versions of Unity cannot destroy a nested prefab, so as the Controllables for example nest the Interactable prefab, if the Interactable prefab is attempted to change the grab action then this tries to delete the nested grab action but will raise an InvalidOperationException because this nested prefab cannot be deleted.

The fix for this is to just disable the hard wired prefab and then create a new temporary prefab that can be continually updated.

ExtendReality-Bot commented 1 year ago

:tada: This PR is included in version 2.11.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket: