Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
DanielYu6's avatar
DanielYu6
Explorer
2 years ago

ISDK SnapInteractor filter

Hi, I might be wrong but as I see there is no option to filter out certain objects from being accepted by the SnapInteractor. I have not yet found a simple and elegant solution to implementing this. I saw SetComputeCandidateOverride but found it a bit confusing and not very ideal for my usecase. Anyone has any ideas?
Thank you!

2 Replies

Replies have been turned off for this discussion
  • Hi DanielYu6, the SnapInteractor.cs should accept a IGameObjectFilter, look into the Optionals/InteractableFilters. There you should be able to assign, for example, a TagSetFilter.cs Component.
    Attach a TagSet Component to the Interactable GameObjects to filter them out based on the rules you have specified. Let us know if this does not work for you!