class WorldInput

in global :: Sandbox . UI

WorldInput can be used to simulate standard mouse inputs on WorldPanels.

Remarks: You need to set and to simulate inputs, ideally this should be done in a BuildInput event.


public bool Enabled { get; set; }

This input won't tick when this is false. Any hovered panels will be cleared.

public Ray Ray { get; set; }

The Ray used to intersect with your world panels, simulating mouse position.

Remarks: This should ideally be set in BuildInput or FrameSimulate.

public Vector2 MouseWheel { get; set; }

Simulate the mouse scroll wheel. You could use Or you could simulate it with the camera view delta for example.

public bool UseMouseInput { get; set; }

Instead of simulating mouse input, this will simply use the mouse input.

public Panel Hovered { get; }

The that is currently hovered by this input.

public Panel Active { get; }

The that is currently pressed by this input.

public bool MouseLeftPressed { get; set; }

😔 No documentation found.

public bool MouseRightPressed { get; set; }

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public WorldInput( )

😔 No documentation found.