Converts pos from relative to screen alignment
to a screen position that is relative to screen alignment using align.
This also converts pos to pixels (in case we have a high density display).
Namespace: NarayanaGames.Common.UIAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
public static Vector2 GetScreenBasedReferencePosition( NGAlignment..::..ScreenAlign align, Vector2 pos, bool isInSceneView )
Parameters
- align
- Type: NarayanaGames.Common.UI NGAlignment ScreenAlign
the screen alignment
- pos
- Type: Vector2
the position relative to screen alignment
- isInSceneView
- Type: System Boolean
needed to work around a Unity bug
Return Value
the screen positionSee Also