HytaleDocs
Entity

Trails

Asset path: Server/Entity/Trails/*.json

Parent

When set this asset will inherit properties from the named asset.

When inheriting from another Trail most properties will simply be copied from the parent asset to this asset. In the case where both child and parent provide a field the child field will simply replace the value provided by the parent, in the case of nested structures this will apply to the fields within the structure. In some cases the field may decide to act differently, for example: by merging the parent and child fields together.

Type information: String

Tags

Tags are a general way to describe an asset that can be interpreted by other systems in a way they see fit.

For example you could tag something with a Material tag with the values Solid and Stone, And another single tag Ore.

Tags will be expanded into a single list of tags automatically. Using the above example with Material and Ore the end result would be the following list of tags: Ore, Material, Solid, Stone, Material=Solid and Material=Stone.

Type information:

(Nullable) Map of the following:

KeyType
any StringArray of String

TexturePath

Type information: String defaults to: Trails/Basic.png

Reference to a common asset in the folder:

  • Common/Trails/

with the extension: *.png

LifeSpan

Type information: Integer defaults to: 0

Roll

Type information: Number defaults to: 0.0

Start

Type information:

(Nullable)

Edge with the following properties:

KeyTypeDescription
WidthNumber defaults to: 0.0
Color(Nullable) A color in the form:

  • #RRGGBBAA

  • rgba(rrr, ggg, bbb, a.a)

  • rgba(#RRGGBB, a.a)

End

Type information:

(Nullable)

Edge with the following properties:

KeyTypeDescription
WidthNumber defaults to: 0.0
Color(Nullable) A color in the form:

  • #RRGGBBAA

  • rgba(rrr, ggg, bbb, a.a)

  • rgba(#RRGGBB, a.a)

LightInfluence

Type information: Number defaults to: 0.0

RenderMode

Type information:

Any one of the following String (defaults to BlendLinear):

NameDescription
"BlendLinear"
"BlendAdd"
"Erosion"
"Distortion"

IntersectionHighlight

Type information:

(Nullable)

IntersectionHighlight with the following properties:

KeyTypeDescription
HighlightThreshold(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

Defines how far away from the intersection the highlight still gets applied.

0 disables the highlight.

HighlightColor(Nullable) A color in the form:

  • #RRGGBB

  • rgb(rrr, ggg, bbb)

Defines the colour that gets applied to the region for the highlight.

Smooth

Type information: Boolean defaults to: false

Animation

Type information:

(Nullable)

Animation with the following properties:

KeyTypeDescription
FrameSize(Nullable)
Vector2i

Vector2i with the following properties:

KeyTypeDescription
XInteger defaults to: 0
YInteger defaults to: 0
FrameRange(Nullable)
Range

Range with the following properties:

KeyTypeDescription
MinInteger defaults to: 0
MaxInteger defaults to: 0
FrameLifeSpanInteger defaults to: 0

On this page