ModelVFX
Documentation for the ModelVFX asset type.
Location
Entity/ModelVFX
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/ModelVFX.schema.json" Schema
SwitchTo
string
EffectDirection
string
AnimationDuration
NullableNumberOrSpecial
AnimationRange unknown
Any of
LoopOption
string
CurveType
string
HighlightColor unknown
Any of
HighlightThickness
NullableNumberOrSpecial
UseBloomOnHighlight
boolean
UseProgessiveHighlight
boolean
NoiseScale unknown
Any of
NoiseScrollSpeed unknown
Any of
PostColor unknown
Any of
PostColorOpacity
NullableNumberOrSpecial
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "ModelVFX.json",
"title": "ModelVFX",
"description": "ModelVFX asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"SwitchTo": {
"type": "string",
"title": "SwitchTo",
"enum": [
"Disappear",
"PostColor",
"Distortion",
"Transparency"
],
"default": "Disappear"
},
"EffectDirection": {
"type": "string",
"title": "EffectDirection",
"enum": [
"None",
"BottomUp",
"TopDown",
"ToCenter",
"FromCenter"
],
"default": "None"
},
"AnimationDuration": {
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
},
"AnimationRange": {
"anyOf": [
{
"default": {
"X": 0,
"Y": 1
},
"$ref": "common.schema.json#/$defs/Vector2f"
},
{
"type": "null"
}
]
},
"LoopOption": {
"type": "string",
"title": "LoopOption",
"enum": [
"PlayOnce",
"Loop",
"LoopMirror"
],
"default": "PlayOnce"
},
"CurveType": {
"type": "string",
"title": "CurveType",
"enum": [
"Linear",
"QuartIn",
"QuartOut",
"QuartInOut"
],
"default": "Linear"
},
"HighlightColor": {
"anyOf": [
{
"type": "string",
"pattern": "^\\s*#([0-9a-fA-F]{3}){1,2}\\s*$"
},
{
"type": "string",
"pattern": "^\\s*rgb\\((\\s*[0-9]{1,3}\\s*,){2}\\s*[0-9]{1,3}\\s*\\)\\s*$"
},
{
"type": "null"
}
]
},
"HighlightThickness": {
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
},
"UseBloomOnHighlight": {
"type": "boolean",
"default": false
},
"UseProgessiveHighlight": {
"type": "boolean",
"default": false
},
"NoiseScale": {
"anyOf": [
{
"default": {
"X": 50,
"Y": 50
},
"$ref": "common.schema.json#/$defs/Vector2f"
},
{
"type": "null"
}
]
},
"NoiseScrollSpeed": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/Vector2f"
},
{
"type": "null"
}
]
},
"PostColor": {
"anyOf": [
{
"type": "string",
"pattern": "^\\s*#([0-9a-fA-F]{3}){1,2}\\s*$"
},
{
"type": "string",
"pattern": "^\\s*rgb\\((\\s*[0-9]{1,3}\\s*,){2}\\s*[0-9]{1,3}\\s*\\)\\s*$"
},
{
"type": "null"
}
]
},
"PostColorOpacity": {
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
}
}
}