Table of Contents

Class Primitive2DEntityOptions

Namespace
Stride.CommunityToolkit.Engine
Assembly
Stride.CommunityToolkit.dll

Option set for creating a 2D primitive entity (quad, rectangle, sprite-like plane) using the toolkit's code‑only helpers.

public class Primitive2DEntityOptions : PrimitiveEntityOptions
Inheritance
Primitive2DEntityOptions
Derived
Inherited Members

Remarks

Inherits common properties from PrimitiveEntityOptions and adds sizing + thickness information suitable for 2D style content that still lives in a 3D world / physics space.

Properties

Depth

Gets or sets the depth (thickness) assigned to the generated 2D primitive. Defaults to 1.

public float Depth { get; set; }

Property Value

float

Remarks

Even "2D" primitives often exist in a 3D simulation. A small Z thickness can improve collision stability or simplify shared 3D physics pipelines; constraints can still lock motion/rotation axes to emulate 2D.

Size

Gets or sets the logical width/height for the generated 2D primitive. When null a shape‑appropriate default is chosen by the creation helper (e.g. unit quad).

public Vector2? Size { get; set; }

Property Value

Vector2?

Remarks

X = width, Y = height.