Click or drag to resize

TextureScreenOverlay Constructor (ScreenOverlayPoint, Texture2D)

Initializes the overlay with a specified background texture. The size of the overlay will be the same as the size of the texture.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public TextureScreenOverlay(
	ScreenOverlayPoint position,
	Texture2D texture
)

Parameters

position
Type: AGI.Foundation.Graphics.AdvancedScreenOverlayPoint
The position of the overlay.
texture
Type: AGI.Foundation.Graphics.RendererTexture2D
The texture (image) to be drawn on the overlay. Textures can be obtained from SceneManager.Textures.
See Also