G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
ImGui::Pick Namespace Reference

Functions

Functions
bool ImGuiToScreenPosition (FVector2D ImGuiPosition, FVector2D &OutScreenPosition)
 Converts a desktop-space ImGui coordinate into the viewport render-pixel space used for deprojection.
USceneComponent PickComponentAtMousePosition (TSubclassOf< USceneComponent > ComponentClassFilter)
FVector CameraWorldPosition ()
 Returns the current camera position.
FTransform CameraWorldTransform ()
 Returns the current camera transform.
bool DeprojectImGuiMousePosition (FVector &OutWorldOrigin, FVector &OutWorldDirection)
 Deprojects the current ImGui mouse position into a world-space ray.
bool DeprojectImGuiPosition (FVector2D ImGuiPosition, FVector &OutWorldOrigin, FVector &OutWorldDirection)
 Deprojects a desktop-space ImGui coordinate into a world-space ray.
AActor PickActorAtMousePosition (TSubclassOf< AActor > ActorClassFilter)
FVector PlayerCharacterWorldPosition ()
 Returns the current player character's world position. Falls back to camera position if needed.
FTransform PlayerCharacterWorldTransform ()
 Returns the current player character's world transform. Falls back to camera position if needed.
bool ProjectWorldToImGuiPosition (FVector WorldPosition, FVector2D &OutImGuiPosition)
 Projects a world-space position into a desktop-space ImGui coordinate, or false if off-screen.
bool ScreenToImGuiPosition (FVector2D ScreenPosition, FVector2D &OutImGuiPosition)
 Converts a viewport render-pixel position into a desktop-space ImGui coordinate.
bool TraceMouseRay (TArray< FHitResult > &OutHits)
bool TraceMouseRayLocation (FVector &OutHitLocation)
 Traces from the mouse cursor into the world and returns the first hit location, or false if nothing was hit.

Function Documentation

◆ CameraWorldPosition()

FVector CameraWorldPosition ( )

Returns the current camera position.

◆ CameraWorldTransform()

FTransform CameraWorldTransform ( )

Returns the current camera transform.

◆ DeprojectImGuiMousePosition()

bool DeprojectImGuiMousePosition ( FVector & OutWorldOrigin,
FVector & OutWorldDirection )

Deprojects the current ImGui mouse position into a world-space ray.

◆ DeprojectImGuiPosition()

bool DeprojectImGuiPosition ( FVector2D ImGuiPosition,
FVector & OutWorldOrigin,
FVector & OutWorldDirection )

Deprojects a desktop-space ImGui coordinate into a world-space ray.

◆ ImGuiToScreenPosition()

bool ImGuiToScreenPosition ( FVector2D ImGuiPosition,
FVector2D & OutScreenPosition )

Converts a desktop-space ImGui coordinate into the viewport render-pixel space used for deprojection.

◆ PickActorAtMousePosition()

AActor PickActorAtMousePosition ( TSubclassOf< AActor > ActorClassFilter)

◆ PickComponentAtMousePosition()

USceneComponent PickComponentAtMousePosition ( TSubclassOf< USceneComponent > ComponentClassFilter)

◆ PlayerCharacterWorldPosition()

FVector PlayerCharacterWorldPosition ( )

Returns the current player character's world position. Falls back to camera position if needed.

◆ PlayerCharacterWorldTransform()

FTransform PlayerCharacterWorldTransform ( )

Returns the current player character's world transform. Falls back to camera position if needed.

◆ ProjectWorldToImGuiPosition()

bool ProjectWorldToImGuiPosition ( FVector WorldPosition,
FVector2D & OutImGuiPosition )

Projects a world-space position into a desktop-space ImGui coordinate, or false if off-screen.

◆ ScreenToImGuiPosition()

bool ScreenToImGuiPosition ( FVector2D ScreenPosition,
FVector2D & OutImGuiPosition )

Converts a viewport render-pixel position into a desktop-space ImGui coordinate.

◆ TraceMouseRay()

bool TraceMouseRay ( TArray< FHitResult > & OutHits)

◆ TraceMouseRayLocation()

bool TraceMouseRayLocation ( FVector & OutHitLocation)

Traces from the mouse cursor into the world and returns the first hit location, or false if nothing was hit.