DrawMaterial: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|This function gets the static mesh component.}} {{FuncSyntax|GetPickupStaticMeshComponent(pickupId, mesh_component)}} {{FuncP..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|This function gets the static mesh component.}}
{{FuncDescription|Draws a material on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawMaterialSimple/index.html}}


{{FuncSyntax|GetPickupStaticMeshComponent(pickupId, mesh_component)}}
{{FuncSyntax|DrawMaterial(UMaterialInterface MaterialReference, ScreenX, ScreenY, ScreenW, ScreenH, Scale, bScalePosition)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|pickupId|The pickup identifier.}}
{{FuncParam|MaterialReference|The material interface.}}
{{FuncParam|mesh_component|The mesh component.}}
{{FuncParam|ScreenX|Screen space X position.}}
{{FuncParam|ScreenY|Screen space Y position.}}
{{FuncParam|ScreenW|Screen width.}}
{{FuncParam|ScreenH|Screen height.}}
{{FuncParam|Scale|X and Y scale.}}
{{FuncParam|bScalePosition|Should the "Scale" parameter also scale the position.}}


{{FuncReturnValue|Returns '''something'''.}}
{{FuncReturnValue|Returns nothing.}}


== Example ==
== Example ==
Line 15: Line 20:


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[DrawText]]
* [[SetDrawColor]]
* [[SetTextDrawScale]]
* [[GetTextSize]]
* [[DrawLine]]
* [[DrawLine3D]]
* [[DrawPoint3D]]
* [[DrawCircle3D]]
* [[DrawBox]]
* [[DrawRect]]
* [[DrawTexture]]
* [[DrawTextureEx]]
* [[DrawMaterial]]

Latest revision as of 20:24, 30 August 2020

DrawMaterial

Type: Function
Context: Client
Introduced: v1.0

Description

Draws a material on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawMaterialSimple/index.html

Syntax

DrawMaterial(UMaterialInterface MaterialReference, ScreenX, ScreenY, ScreenW, ScreenH, Scale, bScalePosition)

Parameters

  • MaterialReference
    The material interface.
  • ScreenX
    Screen space X position.
  • ScreenY
    Screen space Y position.
  • ScreenW
    Screen width.
  • ScreenH
    Screen height.
  • Scale
    X and Y scale.
  • bScalePosition
    Should the "Scale" parameter also scale the position.

Return Value

  • Returns nothing.

Example

__EDIT_ME__

See also