Class LineCubeMesh
Line primitive mesh. To render this mesh use the LineMeshRenderer3D class.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
BaseModel
MeshComponent
LineCubeMesh
Implements
Inherited Members
MeshComponent.modelLink
MeshComponent.meshContainer
MeshComponent.ChangedMesh
MeshComponent.modelMeshName
MeshComponent.MeshCount
MeshComponent.MeshContainer
MeshComponent.MeshNames
MeshComponent.Meshes
MeshComponent.UnloadModel()
MeshComponent.ThrowRefreshEvent()
MeshComponent.RefreshMesh()
BaseModel.customBoundingBoxSet
BaseModel.Refreshed
BaseModel.BoundingBoxRefreshed
Component.Owner
Component.Managers
Component.ShouldBeActivated
Component.Clone()
Component.Attach(Entity)
Component.OnLoaded()
Component.Start()
PrefabInstanceObject.PrefabSource
PrefabInstanceObject.PrefabElementId
PrefabInstanceObject.IsPrefabInstance
PrefabInstanceObject.IsMissingPrefabSource
AttachableObject.AttachableStateChanged
AttachableObject.IsEnabled
AttachableObject.State
AttachableObject.IsLoaded
AttachableObject.IsAttached
AttachableObject.IsActivated
AttachableObject.IsStarted
AttachableObject.IsDestroyed
AttachableObject.Destroy()
AttachableObject.DependencyBroken()
DependencyObject.Dependencies
DependencyObject.OnDependencyRemoved
Namespace: Evergine.Components.Primitives
Assembly: Evergine.Components.dll
Syntax
public class LineCubeMesh : LineMeshBase, IDependencyObject
Constructors
LineCubeMesh()
Initializes a new instance of the LineCubeMesh class.
Declaration
public LineCubeMesh()
Properties
Color
Gets or sets the color for the line, or tint color for the texture.
Declaration
[RenderProperty(Tooltip = "Color for the line, or tint color for the texture")]
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Origin
Gets or sets the origin (also known as pivot) from where the cube scales, rotates and translates. Its values are included in [0, 1] where (0, 0) indicates the top left corner. Such values are percentages where 1 means the 100% of the cube's width/height/depth.
Declaration
public Vector3 Origin { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Size
Gets or sets the width of the rectangle to draw.
Declaration
[RenderProperty(Tooltip = "Cube Size")]
public Vector3 Size { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Thickness
Gets or sets the thickness of the rectangle's line to draw.
Declaration
[RenderPropertyAsFInput(MinLimit = 0, Tooltip = "Thickness of the rectangle's line")]
public float Thickness { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
RefreshMeshes()
Refresh meshes method.
Declaration
protected override void RefreshMeshes()