Enemy vision cone?


I want to create an enemy view like the above, but I can’t think of any ideas. how Can I?

I haven’t tried in 3D, but in 2D it can be done using a light layer, a light source object with a texture and some light blocking objects around the light source:

Light

3 Likes

I hope Lightning can also function as a practical vision function.

The lighting is just a visual, there’s no detection or collision functionality. But if you combine it with a raycast to determine if there is anything between 2 objects/characters, then you can make it seem like the lighting has that detection function.