Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

Manually setting GvrPointerInputModule.Pointer #944

@vinhui

Description

@vinhui

When you manually set the GvrPointerInputModule.Pointer, the GvrPointerGraphicRaycaster doesn't clear the cachedPointerEventCamera field. Adding

if (cachedPointerEventCamera != null &&
    cachedPointerEventCamera.gameObject != GvrPointerInputModule.Pointer.PointerTransform.gameObject)
{
    cachedPointerEventCamera = null;
}

between line 175 and 176 in GvrPointerGraphicRaycaster will fix this issue.

Found using Gvr v1.150.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions