Skip to main content
Up and Coming
August 13, 2024

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!

    This topic has been closed for replies.

    2 replies

    Meta Employee
    August 19, 2024

    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!

    DanielYu6Author
    Up and Coming
    August 22, 2024

    Thank you so much!