Page 1 of 1

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

Posted: 07 Dec 2017, 06:03
by horeaper
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 :(

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

Posted: 08 Dec 2017, 16:41
by jsantos
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>

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

Posted: 09 Dec 2017, 09:07
by horeaper
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

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

Posted: 11 Dec 2017, 12:30
by jsantos
Thanks for the feedback! Marking this as solved.