DrawableEntity RenderLayer Property Delta Engine Documentation

Namespace: DeltaEngine.Entities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public int RenderLayer { get; set; }

Property Value

Type: Int32
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.TextBoxTests
Examples

1 unit tests call DeltaEngine.Entities.DrawableEntity.RenderLayer
[Test, CloseAfterFirstFrame]
public void SaveAndLoad()
{
    var stream = BinaryDataExtensions.SaveToMemoryStream(topTextBox);
    var loadedTextBox = (TextBox)stream.CreateFromMemoryStream();
    Assert.AreEqual(Top, loadedTextBox.DrawArea);
    Assert.AreEqual("Hello", loadedTextBox.Text);
    Assert.AreEqual(2, loadedTextBox.RenderLayer);
    Assert.IsTrue(loadedTextBox.State.CanHaveFocus);
    Assert.AreEqual(topTextBox.children.Count, loadedTextBox.children.Count);
}
See Also