Axiom.Core.SceneManager.CreateOverlay C# (CSharp) Méthode

CreateOverlay() public méthode

Creates a new Overlay.

Overlays can be used to render heads-up-displays (HUDs), menu systems, cockpits and any other 2D or 3D object you need to appear above the rest of the scene. See the Overlay class for more information.

NOTE: after creation, the Overlay is initially hidden. You can create as many overlays as you like ready to be displayed whenever. Just call Overlay.Show to display the overlay.

public CreateOverlay ( string name, int zorder ) : Overlay
name string The name to give the overlay, must be unique.
zorder int The zorder of the overlay relative to it's peers, higher zorders appear on top of lower ones.
Résultat Axiom.Overlays.Overlay
		public virtual Overlay CreateOverlay( string name, int zorder )
		{
			Overlay newOverlay = (Overlay)OverlayManager.Instance.Create( name );
			newOverlay.ZOrder = zorder;

			return newOverlay;
		}
SceneManager