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.2.419.0 (24.2.419.0)
Syntax public TextureScreenOverlay(
ScreenOverlayPoint position,
Texture2D texture
)
Public Sub New (
position As ScreenOverlayPoint,
texture As Texture2D
)
public:
TextureScreenOverlay(
ScreenOverlayPoint position,
Texture2D^ texture
)
new :
position : ScreenOverlayPoint *
texture : Texture2D -> TextureScreenOverlay
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