Initializes the overlay with a specified background texture. The size of the overlay will be the same as the size of the texture.
| [Visual Basic .NET] |
|---|
|
| [C#] |
|---|
public IAgStkGraphicsTextureScreenOverlay InitializeWithPositionTexture( System.Array Position, IAgStkGraphicsRendererTexture2D Texture ); |
| [Managed C++] |
|---|
public: IAgStkGraphicsTextureScreenOverlay^ InitializeWithPositionTexture( System::Array ^ Position, IAgStkGraphicsRendererTexture2D ^ Texture ); |
| [Unmanaged C++] |
|---|
|
| [Java] |
|---|
public IAgStkGraphicsTextureScreenOverlay initializeWithPositionTexture( AgSafeArray Position, IAgStkGraphicsRendererTexture2D Texture ); |
[Python - STK API ] |
|---|
def InitializeWithPositionTexture(self, Position:list, Texture:"IAgStkGraphicsRendererTexture2D") -> "IAgStkGraphicsTextureScreenOverlay": |
- Position
- An array with a size of 4 that represents the position of the overlay. The elements are in the order x position, y position, x Screen Overlay Unit, y Screen Overlay Unit.
- Texture
- The texture (image) to be drawn on the overlay. Textures can be obtained from SceneManager.Textures.
Shows the format of the Position and Size parameters when creating a texture screen overlay.
| [C#] | ||
|---|---|---|
| ||
Shows the format of the Position and Size parameters when creating a texture screen overlay.
| [Visual Basic .NET] | ||
|---|---|---|
| ||






