Class ScreenUtilities
Platform-dependent screen utilities.
Inheritance
System.Object
ScreenUtilities
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public static class ScreenUtilities : Object
Methods
GetColorAt(Float2)
Gets the pixel color at the specified coordinates.
Declaration
[Unmanaged]
public static Color32 GetColorAt(Float2 pos)
Parameters
Float2
pos
Screen-space coordinate to read. |
Returns
Color32
Pixel color at the specified coordinates. |
PickColor()
Starts async color picking. Color will be returned through PickColorDone event when the actions ends (user selected the final color with a mouse). When action is active, GetColorAt can be used to read the current value.
Declaration
[Unmanaged]
public static void PickColor()
Events
PickColorDone
Called when PickColor action is finished.
Declaration
[Unmanaged]
public static event Action<Color32> PickColorDone
Event Type
System.Action<Color32>
|