Api Sandbox SceneLineObject
class

SceneLineObject

public class SceneLineObject : SceneCustomObject

A scene object which is used to draw lines

Constructors

SceneLineObject(SceneWorld sceneWorld)

Properties

Name Type Description
LineTexture Texture
StartCap CapStyle
EndCap CapStyle
Face FaceMode
Wireframe Boolean
Lighting Boolean
Clamped Boolean
SamplerState SamplerState
Smoothness Int32
Opaque Boolean
TessellationLevel Int32 Number of tessellation subdivisions across the width of each line segment. 1 = no tessellation (just left and right), 2 = one subdivision in the middle, etc. Higher values create smoother curves and more detailed geometry but use more vertices.

Methods

Void StartLine()
Void AddLinePoint(Vector3 pos, Color color, Single width)
Void AddLinePoint(Vector3 pos, Color color, Single width, Single textureCoord)
Void AddLinePoint(Vector3 pos, Vector3 normal, Color color, Single width, Single textureCoord)
Void EndLine()
Void Clear()
virtual Void RenderSceneObject()

Fields

Name Type Description
Material Material
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.SceneLineObject