Class TextPrefab
java.lang.Object
dev.prozilla.pine.core.entity.prefab.Prefab
dev.prozilla.pine.core.entity.prefab.canvas.CanvasElementPrefab
dev.prozilla.pine.core.entity.prefab.canvas.TextPrefab
- Direct Known Subclasses:
TextButtonPrefab
Prefab for text elements in the UI.
-
Field Summary
FieldsFields inherited from class dev.prozilla.pine.core.entity.prefab.canvas.CanvasElementPrefab
absolutePosition, anchor, position, size
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.core.entity.prefab.canvas.CanvasElementPrefab
setAbsolutePosition, setAnchor, setPosition, setPosition, setSize, setSize
Methods inherited from class dev.prozilla.pine.core.entity.prefab.Prefab
instantiate, instantiate, setActive, setName, setTag
-
Field Details
-
text
-
color
-
font
-
-
Constructor Details
-
TextPrefab
public TextPrefab() -
TextPrefab
-
TextPrefab
-
-
Method Details
-
setText
-
setColor
-
setFont
-
setFont
-
apply
Description copied from class:Prefab
Adds this prefab's predefined components to a given entity and copies values from this prefab.- Overrides:
apply
in classCanvasElementPrefab
-