- Home /
how to get pixel colors in the GUI brush area
void OnSceneGUI(SceneView sceneView) { Handles.BeginGUI (); GUILayout.BeginArea (new Rect (10,10,200,150),boxStyle); GUILayout.Button ("Button",GUILayout.Height(25)); GUILayout.Button ("Button",GUILayout.Height(25)); GUILayout.EndArea (); Handles.EndGUI ();
Handles.color = new Color (1f,0f,0f,0.25f);
Handles.DrawSolidDisc (Vector3.zero,Vector3.up,2f);
Handles.color = Color.white;
Handles.DrawWireDisc (Vector3.zero,Vector3.up,2f);
}
i have created GUI brush and how to get pixel colors in the brush area.
asd.png
(153.2 kB)
Comment