Method CreateGradientPicker
| Improve this Doc View SourceCreateGradientPicker(Vector2, Vector2, Vector2, Gradient, string, GradientEvent, GradientEvent)
Creates and displays a Valheim style GradientPicker
Declaration
public void CreateGradientPicker(Vector2 anchorMin, Vector2 anchorMax, Vector2 position, Gradient original, string message, GradientPicker.GradientEvent onGradientChanged, GradientPicker.GradientEvent onGradientSelected)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | anchorMin | Min anchor on first instantiation |
Vector2 | anchorMax | Max anchor on first instantiation |
Vector2 | position | Position on first instantiation |
Gradient | original | Color before editing |
string | message | Display message |
GradientPicker.GradientEvent | onGradientChanged | Event that gets called when the gradient gets modified |
GradientPicker.GradientEvent | onGradientSelected | Event that gets called when one of the buttons done or cancel gets pressed |