Show / Hide Table of Contents

Method CreateWoodpanel

| Edit this page View Source

CreateWoodpanel(Transform, Vector2, Vector2, Vector2, float, float)

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
| Edit this page View Source

CreateWoodpanel(Transform, Vector2, Vector2, Vector2, float, float, bool)

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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾