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

Breaking changes in 2.5.5 #134

Closed ArtemkaKun closed 1 year ago

ArtemkaKun commented 2 years ago

Hi, we updated the last Controllable package, that uses Interactables package v2.7.0. Previously we used v2.6.1. The problem is that changes in 2.7.0 broke our stuff.

Our code is dependent on GameObjectRelations component, which is situated on the OrientationHandles object. image

Code

private void SetRelationsInController (GameObjectRelationObservableList.Relation[] relations)
{
  if (relations == null)
  {
    return;
  }

  OrientationHandlesController.Relations.Add(relations[0]);
  OrientationHandlesController.Relations.Add(relations[1]);
}

On the new version, there is another script on the OrientationHandles object - GameObjectEventProxyEmitter. image

After a discussion on Discord, @thestonefox said this issue should be raised since v2.5.5 wasn't marked as "breaking changes".

thestonefox commented 2 years ago

If you just need access to the GameObjectRelations component then it has just been moved to the GameObjectRelationsLogic gameobject lower down

image

ArtemkaKun commented 2 years ago

If you just need access to the GameObjectRelations component then it has just been moved to the GameObjectRelationsLogic gameobject lower down

image

I will look on it, thanks