Method CreateWoodpanel
|
Improve this Doc
View Source
Creates a Valheim style woodpanel which is draggable per default
Declaration
public GameObject CreateWoodpanel(Transform parent, Vector2 anchorMin, Vector2 anchorMax, Vector2 position, float width = 0, float height = 0)
Parameters
Type |
Name |
Description |
Transform |
parent |
Parent Transform |
Vector2 |
anchorMin |
Minimal anchor |
Vector2 |
anchorMax |
Maximal anchor |
Vector2 |
position |
Anchored position |
float |
width |
Optional width |
float |
height |
Optional height |
Returns
Type |
Description |
GameObject |
A GameObject as a Valheim style woodpanel |
|
Improve this Doc
View Source
Creates a Valheim style woodpanel, can optionally be draggable
Declaration
public GameObject CreateWoodpanel(Transform parent, Vector2 anchorMin, Vector2 anchorMax, Vector2 position, float width = 0, float height = 0, bool draggable = true)
Parameters
Type |
Name |
Description |
Transform |
parent |
Parent Transform |
Vector2 |
anchorMin |
Minimal anchor |
Vector2 |
anchorMax |
Maximal anchor |
Vector2 |
position |
Anchored position |
float |
width |
Optional width |
float |
height |
Optional height |
bool |
draggable |
Optional flag if the panel should be draggable (default true) |
Returns
Type |
Description |
GameObject |
A GameObject as a Valheim style woodpanel |