Class SplineModel
Renders model over the spline segments.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class SplineModel : ModelInstanceActor, ISerializable
Constructors
SplineModel()
Properties
BoundsScale
Gets or sets the model bounds scale. It is useful when using Position Offset to animate the vertices of the object outside of its bounds.
Declaration
[EditorOrder(12)]
[EditorDisplay("Model", null)]
[Limit(0F, 10F, 0.1F)]
[Unmanaged]
public float BoundsScale { get; set; }
Property Value
System.Single
|
DrawModes
The draw passes to use for rendering this object.
Declaration
[EditorOrder(15)]
[EditorDisplay("Model", null)]
[Unmanaged]
public DrawPass DrawModes { get; set; }
Property Value
DrawPass
|
ForcedLOD
Gets or sets the model forced Level Of Detail index. Allows to bind the given model LOD to show. Value -1 disables this feature.
Declaration
[EditorOrder(50)]
[Limit(-1F, 100F, 0.1F)]
[EditorDisplay("Model", "Forced LOD")]
[Unmanaged]
public int ForcedLOD { get; set; }
Property Value
System.Int32
|
LODBias
Gets or sets the model Level Of Detail bias value. Allows to increase or decrease rendered model quality.
Declaration
[EditorOrder(40)]
[Limit(-100F, 100F, 0.1F)]
[EditorDisplay("Model", "LOD Bias")]
[Unmanaged]
public int LODBias { get; set; }
Property Value
System.Int32
|
Model
The model asset to draw.
Declaration
[EditorOrder(20)]
[EditorDisplay("Model", null)]
[Unmanaged]
public Model Model { get; set; }
Property Value
Model
|
PreTransform
Gets or sets the transformation applied to the model geometry before placing it over the spline. Can be used to change the way model goes over the spline.
Declaration
[EditorOrder(21)]
[EditorDisplay("Model", null)]
[Unmanaged]
public Transform PreTransform { get; set; }
Property Value
Transform
|
Quality
Gets or sets the spline model quality scale. Higher values improve the spline representation (better tessellation) but reduce performance.
Declaration
[EditorOrder(11)]
[EditorDisplay("Model", null)]
[Limit(0.1F, 100F, 0.1F)]
[Unmanaged]
public float Quality { get; set; }
Property Value
System.Single
|