The JSON - AlphaGaming7780/ExtraAssetsImporter GitHub Wiki
The JSON file is the information about your surfaces/decals, it directly controls the behaviour of it.
That's why you only need to put the value you changed into the JSON, any other value that is the same as the default JSON for your asset shouldn't be in the JSON file. Doing that drastically reduces the risk of your asset breaking with an EAI update. EAI will always set the value needed to make your asset work (default value). But if you change one of these values or set this value in the JSON as the default one and EAI change its default one for any raison, your asset is going to break.
You can find the default JSON for all the asset below and an example on how a JSON file should look like.
Default JSON
{
"UiPriority": 0,
"m_Roundness": 0.5,
"Float": {
"_Metallic": 1,
"_Smoothness": 1,
"colossal_DecalLayerMask": 1,
"_AffectAlbedo": 1,
"_AffectMetal": 1,
"_AffectNormal": 1,
"_AffectSmoothness": 1,
"_DecalColorMask0": 15,
"_DecalColorMask1": 15,
"_DecalColorMask2": 11,
"_DecalColorMask3": 8,
"_DecalMeshBiasType": 0,
"_DecalMeshDepthBias": 0,
"_DecalMeshViewBias": 0,
"_DecalStencilRef": 16,
"_DecalStencilWriteMask": 16,
"_DrawOrder": 0,
"_MetallicAlphaSource": 0,
"_MetallicOpacity": 1,
"_NormalAlphaSource": 0,
"_NormalOpacity": 1,
"colossal_EdgeNormal": 0.5,
"colossal_UVScale": 0.2
},
"Vector": {
"_BaseColor": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_BaseColorMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_BaseColorMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_BaseColorMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_MaskMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_MaskMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_MaskMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_NormalMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_NormalMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_NormalMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_Lightmaps_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_Lightmaps_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_Lightmaps_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_LightmapsInd_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_LightmapsInd_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_LightmapsInd_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_ShadowMasks_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_ShadowMasks_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_ShadowMasks_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_VTUVs0": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_VTUVs1": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"colossal_AreaParameters": {
"x": 0.5,
"y": 4,
"z": 0,
"w": 0
},
"Vector2_a453d92aee7242ae912e8d91edfd2c50": {
"x": 1,
"y": 0.5,
"z": 0,
"w": 0
},
"colossal_EdgeFadeRange": {
"x": 0.75,
"y": 0.25,
"z": 0,
"w": 0
},
"colossal_EdgeNoise": {
"x": 0.5,
"y": 0.5,
"z": 0,
"w": 0
},
"DefaultPVTStack_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"DefaultPVTStack_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"DefaultPVTStack_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
}
},
"prefabIdentifierInfos": []
}
Example JSON
{
"UiPriority": 165446516465,
"Float": {
"colossal_UVScale": 0.25,
"colossal_DecalLayerMask": 3
},
"Vector": {
"colossal_AreaParameters": {
"x": 0.5,
"y": 4,
"z": 0,
"w": 0
},
"colossal_EdgeFadeRange": {
"x": 0.5,
"y": 0.5,
"z": 0,
"w": 0
},
"colossal_EdgeNoise": {
"x": 0,
"y": 1,
"z": 0,
"w": 0
}
},
"prefabIdentifierInfos": [
{
"m_Name": "Asphalt 002",
"m_Type": "SurfacePrefab"
}
]
}
Default JSON
{
"UiPriority": 0,
"Float": {
"_Metallic": 1,
"_Smoothness": 1,
"colossal_DecalLayerMask": 1,
"colossal_LodDistanceFactor": 1,
"_AffectAlbedo": 1,
"_AffectMetal": 1,
"_AffectNormal": 1,
"_AffectSmoothness": 1,
"_DecalColorMask0": 15,
"_DecalColorMask1": 15,
"_DecalColorMask2": 11,
"_DecalColorMask3": 8,
"_DecalMeshBiasType": 0,
"_DecalMeshDepthBias": 0,
"_DecalMeshViewBias": 0,
"_DecalStencilRef": 16,
"_DecalStencilWriteMask": 16,
"_DrawOrder": 0,
"_MetallicAlphaSource": 0,
"_MetallicOpacity": 1,
"_NormalAlphaSource": 0,
"_NormalOpacity": 1
},
"Vector": {
"_BaseColor": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_BaseColorMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_BaseColorMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_BaseColorMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_MaskMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_MaskMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_MaskMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_NormalMap_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_NormalMap_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"_NormalMap_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_Lightmaps_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_Lightmaps_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_Lightmaps_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_LightmapsInd_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_LightmapsInd_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_LightmapsInd_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_ShadowMasks_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"unity_ShadowMasks_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"unity_ShadowMasks_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"_VTUVs0": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_VTUVs1": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"colossal_MeshSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 0
},
"colossal_TextureArea": {
"x": 0,
"y": 0,
"z": 1,
"w": 1
},
"DefaultPVTStack_ST": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"DefaultPVTStack_TexelSize": {
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"DefaultPVTStack_HDR": {
"x": 1,
"y": 1,
"z": 0,
"w": 0
}
},
"prefabIdentifierInfos": []
}
Example JSON
{
"UiPriority": 5571,
"Float": {
"_Metallic": 0,
"_Smoothness": 0,
"colossal_DecalLayerMask": 7,
"_NormalOpacity": 0.5,
"_MetallicOpacity": 0
},
"Vector": {
"colossal_MeshSize": {
"x": 5,
"y": 1,
"z": 5,
"w": 0
}
}
}