Get objects between two positions and put them in an array

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I’m working on a basic isometric camera system, and I’d like to make objects between the player and the camera slightly transparent. (For roofs and walls so you can see interiors)

  2. What is the issue? Include screenshots / videos if possible!
    For this I think getting objects between the player and the camera would be useful (two positions), but I can’t find an easy way of doing this. I would like these objects to be stored in an array

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried searching for an answer on the devforum and experimenting with raycasts, if you find a topic that is similar please link below.

1 Like

StarterPlayer.DevCameraOcclusionMode can be set to Enum.DevCameraOcclusionMode.Invisicam in order to achieve this behavior if you are using the default playermodule.
If you want to actually view the script that implements this behavior it can be found at game.StarterPlayer.StarterPlayerScripts.PlayerModule.CameraModule.Invisicam during a test session.

1 Like

image

I spent too long working on this and eventually found a weird solution, but this toggle looks way better thanks

Just some added info that I just discovered while in Studio, The UIListLayout also seems to have invisicam.


Figured was some interesting info.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.