- Home /
Using raycast to enable canvas that is linked to a prefabs gameobject
so two questions: 1. How do I link a canvas to a single prefab?
How do I set it up so when the maincamera looks at an object prefab the attached canvas is enabled and therefore visible.
I have a couple pieces of information about the object on the canvas. I have multiple objects. I want to make it so the objects information appears on screen when the user looks at it with oculus rift.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612034133im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UI Buttons visible but not clickable when using two canvases. 3 Answers
Disabling Canvas Prefab only turns off prefab, not in scene canvas 1 Answer
How to check if the Canvas is infront of an object 1 Answer
How to set the UI Text position to be relative to his "grandfather" prefab 0 Answers
How to get PointerEventDatas[]? 0 Answers