Search Unity

Putting the camera inside the cube to see only the inside of cube throughout the game

Discussion in 'Scripting' started by Jela, Jul 12, 2014.

  1. Jela

    Jela

    Joined:
    Jul 5, 2014
    Posts:
    30
    I'm new to Unity and I'm trying to invent a game with 3d. I want to put a camera inside the cube object but how is it possible? I've read some forums and they mentioned about Normal. I don't want the camera to see the outside of the cube. I want the camera to be inside the cube, so that the only part that will be seen in my game is the inside of the cube. Is it possible? Please help me. Thank you in advance! Please, please hep me. :(
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,408
  3. Jela

    Jela

    Joined:
    Jul 5, 2014
    Posts:
    30
    The cull off source code that you've given, Am I going to put that script in the cube?
     
  4. landon912

    landon912

    Joined:
    Nov 8, 2011
    Posts:
    1,579
    They are shaders. Make a new shader, and drop the code into it. Then assign the shader to the cube object, in its material area.
     
  5. GoodGuyFriedNoodles

    GoodGuyFriedNoodles

    Joined:
    Jul 2, 2021
    Posts:
    1
    I know is 2 late to write this but in case someone else has the same problem. Just add "ProBuilder" to your project create the cube you want, and in the "ProBuilder Window" press the "Flip Normals" option!
     
    Melanzue and mmzamn like this.