Search Unity

Some prefabs are not selectable in EditorxR mode

Discussion in 'EditorXR' started by cfi_xr_1, Apr 25, 2018.

  1. cfi_xr_1

    cfi_xr_1

    Joined:
    Feb 14, 2018
    Posts:
    4
    Hi,

    In editorXR mode, some of my own prefabs (UI elements) are not selectable using the rays that are sent out by the controllers. They are selectable by selecting them in the Hierarchy, or by putting the controller inside them. Unity primitives can be selected by the controller rays.

    It seems this has to do with the raycasting and collider configuration. When activating the collider that is used on the prefab, it seems to block the ray from selecting the object (The ray from the controller is visibly being blocked by the collider). If I deactive the collider, the ray goes right through the object, without selecting it.

    Has anyone else run into this issue and found a fix?
     
  2. amirebrahimi

    amirebrahimi

    Joined:
    Jan 27, 2008
    Posts:
    171
    Are these prefabs that you are using for a custom tool or UIs that simply exist in your scene? If you look at the other EXR UI prefabs you'll see they are placed in the UI layer.