ExtendRealityLtd / ExtendRealityLtd/Tilia.Interactions.Interactables.Unity

IsGrabbed is always true

Open
#179 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
9
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Environment

* Code version: 2.18.1
* Platform version: Unity 6000.0.29f

### Steps to reproduce

Recreated in YouTube samples project scene 0018 - Precisely Grab Objects at point of Touch.
Set up 3 interactables on the table:
- One regular grabbable
- One with primary action "none"
- One with primary action "custom" (like when you spawn a new Interactions.Interactable)

Add script with this code to the scene, and add the objects to the list:
```
using System.Collections.Generic;
using Tilia.Interactions.Interactables.Interactables;
using UnityEngine;

public class InteractableTester : MonoBehaviour
{
[SerializeField] private List interactables;

void Start()
{
foreach (var facade in interactables)
{
Debug.Log($"Is {facade.gameObject.name} grabbable? {facade.GrabEnabled}");
}
}
}
```

### Expected behavior

The two last interactables should not be grabbable

### Current behavior

All three interactables print "true"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.