Class EntityDebugSceneRendererOptions
- Namespace
- Stride.CommunityToolkit.Rendering.Compositing
- Assembly
- Stride.CommunityToolkit.dll
Options for rendering debug information for entities in the scene.
public class EntityDebugSceneRendererOptions
- Inheritance
-
EntityDebugSceneRendererOptions
Constructors
EntityDebugSceneRendererOptions()
Initializes a new instance of EntityDebugSceneRendererOptions with default settings.
public EntityDebugSceneRendererOptions()
EntityDebugSceneRendererOptions(int, Color)
Initializes a new instance of EntityDebugSceneRendererOptions with specified font size and color.
public EntityDebugSceneRendererOptions(int fontSize, Color fontColor)
Parameters
Properties
FontColor
Gets or sets the font color for the debug text. Default is black.
public Color FontColor { get; set; }
Property Value
FontSize
Gets or sets the font size for the debug text. Default is 12.
public int FontSize { get; set; }
Property Value
Offset
Gets or sets the offset for positioning the debug text relative to the entity. Default offset is (0, -25).
public Vector2 Offset { get; set; }
Property Value
ShowEntityName
Gets or sets a value indicating whether to show the entity's name. Default is true.
public bool ShowEntityName { get; set; }
Property Value
ShowEntityPosition
Gets or sets a value indicating whether to show the entity's position.
public bool ShowEntityPosition { get; set; }
Property Value
ShowFontBackground
Gets or sets a value indicating whether to display a background behind the text.
public bool ShowFontBackground { get; set; }
Property Value
Methods
CreateDefault()
Provides default settings for rendering entity debug information.
public static EntityDebugSceneRendererOptions CreateDefault()
Returns
- EntityDebugSceneRendererOptions
A new instance of EntityDebugSceneRendererOptions with default values.