Skip to content
0.2.0-dev Download ZIP
43 lines ·1.9 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="LineBase3D" inherits="GeometryInstance3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A base class to draw a 3D line in space.
5 </brief_description>
6 <description>
7 </description>
8 <tutorials>
9 </tutorials>
10 <constants>
11 <constant name="MESH_ALIGNMENT_LOCAL" value="0" enum="MeshAlignment">
12 Align the line normal to the local Y axis of the line node.
13 </constant>
14 <constant name="MESH_ALIGNMENT_BILLBOARD" value="1" enum="MeshAlignment">
15 Align the normal of each section of the LineBase3D to face the camera.
16 See also [member SpriteBase3D.billboard] and [enum BaseMaterial3D.BillboardMode]
17 </constant>
18 <constant name="MESH_ALIGNMENT_MAX" value="2" enum="MeshAlignment">
19 Represents the size of the [enum MeshAlignment] enum.
20 </constant>
21 <constant name="TILING_MODE_STRETCH" value="0" enum="TilingMode">
22 Assign UVs from [code]0[/code] to [code]1[/code] across the length of the line.
23 </constant>
24 <constant name="TILING_MODE_TILE" value="1" enum="TilingMode">
25 Assign UVs from [code]0[/code] to current length, across the length of the line.
26 </constant>
27 <constant name="TILING_MAX" value="2" enum="TilingMode">
28 Represents the size of the [enum TilingMode] enum.
29 </constant>
30 <constant name="MATERIAL_MODE_MIX" value="0" enum="MaterialMode">
31 Assign a built-in mix material to the line.
32 </constant>
33 <constant name="MATERIAL_MODE_ADD" value="1" enum="MaterialMode">
34 Assign a built-in additive material to the line.
35 </constant>
36 <constant name="MATERIAL_MODE_CUSTOM" value="2" enum="MaterialMode">
37 Assign a custom material to the line.
38 </constant>
39 <constant name="MATERIAL_MODE_MAX" value="3" enum="MaterialMode">
40 Represents the size of the [enum MaterialMode] enum.
41 </constant>
42 </constants>
43</class>