Class RectUpdater
java.lang.Object
dev.prozilla.pine.core.system.SystemBase
dev.prozilla.pine.core.system.update.UpdateSystemBase
dev.prozilla.pine.core.system.update.UpdateSystem
dev.prozilla.pine.core.system.standard.canvas.RectUpdater
- All Implemented Interfaces:
Lifecycle
Positions canvas elements based on their offset and anchor point inside the canvas.
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.system.update.UpdateSystem
timeScale
Fields inherited from class dev.prozilla.pine.core.system.SystemBase
application, logger, scene, world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
anchorRect
(RectTransform rect) protected void
process
(EntityChunk chunk, float deltaTime) Updates a single entity's data, each frame.static void
resizeRect
(RectTransform rect) static void
updateRect
(RectTransform rect) Methods inherited from class dev.prozilla.pine.core.system.update.UpdateSystem
update
Methods inherited from class dev.prozilla.pine.core.system.SystemBase
forEach, forEachReverse, hasEntityChunks, initSystem, print, register, requireTag, setExcludedComponentTypes, sort, unregister
-
Constructor Details
-
RectUpdater
public RectUpdater()
-
-
Method Details
-
process
Description copied from class:UpdateSystem
Updates a single entity's data, each frame.- Specified by:
process
in classUpdateSystem
- Parameters:
chunk
- Entity that matches this system's querydeltaTime
- Delta time in seconds
-
updateRect
-
resizeRect
-
anchorRect
-