DrawMaterial: Difference between revisions
From Onset Developer Wiki
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| | {{FuncDescription|Draws a material on screen. https://docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AHUD/DrawMaterialSimple/index.html}} | ||
{{FuncSyntax| | {{FuncSyntax|DrawMaterial(UMaterialInterface MaterialReference, ScreenX, ScreenY, ScreenW, ScreenH, Scale, bScalePosition)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam| | {{FuncParam|MaterialReference|The material interface.}} | ||
{{FuncParam| | {{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 | {{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
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__