playMaker

Author Topic: galak z like UI element [SOLVED]  (Read 161 times)

agito1987

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
galak z like UI element [SOLVED]
« on: September 11, 2017, 04:45:29 AM »
Me again with a nother question. I asked on the unity forum but get no answers.

I am making something like a shmup.
I want to use a close up of the player as the UI. You can think of it as a mix of dead space and the Galak-Z corner animation of the pilot.

Right now I use a second camera and place the player in the corner of the camera so it is shown in the corner of the screen where I want it. However by doing it this way I don’t really get the viewing angel I want.

What I want to achieve:
1:Use the second camera and place the output image where I want it to show up.
2: show the player like viewed through a hole. (Only a part is visible, edges get cut off.). I hope the attached image makes clear what I want to achieve.

Thanks

Chris
« Last Edit: September 11, 2017, 10:36:27 AM by agito1987 »

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: galak z like UI element
« Reply #1 on: September 11, 2017, 07:52:18 AM »
I half remember one of the official Unity tutorials does something like this. Have a look on their YouTube page. Maybe around the 4.2 or 5 update?

agito1987

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
Re: galak z like UI element
« Reply #2 on: September 11, 2017, 10:36:06 AM »
YES!!

You were right there is a tutorial on the official unity channel that helps me create my effect. (Creating a minimap system tutorial)

Here they show how you can send the render information from a camera to a UI sprite.
This gives the possibility to position the output wherever you want. And also to mask edges that you don’t want to display get cut off.

Thank you! This has helped me a lot. I am away for a couple of days so I will only be able to test this out when I am back.
I will post an update once I worked this method into my project!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2305
    • View Profile
    • jinxtergames
Re: galak z like UI element [SOLVED]
« Reply #3 on: September 11, 2017, 07:30:23 PM »
Hi,
Can you share the link, my others will stumble on this post that might need it  :)

agito1987

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
Re: galak z like UI element [SOLVED]
« Reply #4 on: September 11, 2017, 11:27:10 PM »
Ah yes of cource XD
Here is the link for the minimap system videos: https://www.youtube.com/watch?v=K6FpyLXd9Zk



4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: galak z like UI element
« Reply #5 on: September 12, 2017, 12:47:09 AM »
YES!!

You were right there is a tutorial on the official unity channel that helps me create my effect. (Creating a minimap system tutorial)

Here they show how you can send the render information from a camera to a UI sprite.
This gives the possibility to position the output wherever you want. And also to mask edges that you don’t want to display get cut off.

Thank you! This has helped me a lot. I am away for a couple of days so I will only be able to test this out when I am back.
I will post an update once I worked this method into my project!

Ahh cool, I wasn't sure if I was misremembering it, glad you found it  8)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2305
    • View Profile
    • jinxtergames
Re: galak z like UI element [SOLVED]
« Reply #6 on: September 12, 2017, 06:42:50 AM »
thx for sharing