Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how to make

Discussion in 'Scripting' started by Tinys, Feb 27, 2015.

  1. Tinys

    Tinys

    Joined:
    Feb 27, 2015
    Posts:
    4
    Hi guys ! how to make a separate window in the inside of the game screen, where it will be seen where looking enemy ?
     
    Last edited: Feb 27, 2015
  2. OboShape

    OboShape

    Joined:
    Feb 17, 2014
    Posts:
    836
    im making assumptions with what you are looking for....

    you could use a secondary camera attached to the enemy, with different camera depths so the enemy camera overlays your player camera.
     
  3. lineupthesky

    lineupthesky

    Joined:
    Jan 31, 2015
    Posts:
    92
    Two ways that I know, if you have Unity Pro you can use a render texture and attach it to a mesh like a plane or cube. Documentation on Render Texture is over here :

    http://docs.unity3d.com/Manual/class-RenderTexture.html

    Second way is you can simply use different viewports to have multiple cameras in one screen. Just adjust the viewport options on your cameras to place them on different positions.
     
    Kiwasi likes this.
  4. Tinys

    Tinys

    Joined:
    Feb 27, 2015
    Posts:
    4
    thank you for your answers! now try to use your advice