Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 531 Bytes

Manual-ReceivingUserInputInWorld.md

File metadata and controls

15 lines (14 loc) · 531 Bytes

Receiving user input in world system

To receive data from marker, you need to get it inside Update method.

IMPORTANT! Do not receive markers inside AdvanceTick, because markers lifetime are limited by current frame.

public class UserInputReceiveSystem : ISystem, IUpdate {
    ...
    void IUpdate.Update(in float deltaTime) {
        if (this.world.GetMarker(out WorldClick markerClick) == true) {
            ...
        }
    }
}