DrawMaterial: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
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|DrawMaterial(UMaterialInterface, ScreenX, ScreenY, ScreenW, ScreenH, Scale, bScalePosition)}} | {{FuncSyntax|DrawMaterial(UMaterialInterface MaterialReference, ScreenX, ScreenY, ScreenW, ScreenH, Scale, bScalePosition)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam| | {{FuncParam|MaterialReference|The material interface.}} | ||
{{FuncParam|ScreenX|Screen space X position.}} | {{FuncParam|ScreenX|Screen space X position.}} | ||
{{FuncParam|ScreenY|Screen space Y position.}} | {{FuncParam|ScreenY|Screen space Y position.}} | ||
Line 20: | 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__