User avatar
horeaper
Topic Author
Posts: 9
Joined: 22 Sep 2014, 12:50

Unity - Does Noesis support something like "Reference Resolution"?

07 Dec 2017, 06:03

Is there any way to let noesis uses a "reference resolution", instead the native res, like this setting from Unity UI:
Image
1280x720, with "Expand" match mode.

Or some way to emulate the effect. I wonder if ViewBox can achieve that, just don't know how :(
Last edited by horeaper on 09 Dec 2017, 17:16, edited 1 time in total.
 
User avatar
jsantos
Site Admin
Posts: 1874
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity - Does Noesis support something like "Reference Resolution"?

08 Dec 2017, 16:41

Yes, exacty Viewbox is what you need. In this example I am using a virtual resolution of 380x240 that is later scaled b y the viewbox to fill the current given space.
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> 
    <Canvas Width="380" Height="240">	
        <TextBlock Canvas.Left="20" Canvas.Top="15">ONE</TextBlock>
        <TextBlock Canvas.Left="255" Canvas.Top="35">TWO</TextBlock>
        <TextBlock Canvas.Left="300" Canvas.Top="135">THREE</TextBlock>
        <TextBlock Canvas.Left="10" Canvas.Top="205">FOUR</TextBlock>
    </Canvas>
</Viewbox>
 
User avatar
horeaper
Topic Author
Posts: 9
Joined: 22 Sep 2014, 12:50

Re: Unity - Does Noesis support something like "Reference Resolution"?

09 Dec 2017, 09:07

Thanks for the demo! I was able to recreate the "Expand" effect, by binding the ViewBox's content's Width/Height to a value which I update in the SizeChanged event, and it works! :D
 
User avatar
jsantos
Site Admin
Posts: 1874
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity - Does Noesis support something like "Reference Resolution"?

11 Dec 2017, 12:30

Thanks for the feedback! Marking this as solved.

Who is online

Users browsing this forum: No registered users and 3 guests