internal static void Write(SerializedProperty property, EnlightenRendererInformation value)
 {
     property.FindPropertyRelative("renderer").objectReferenceValue          = value.renderer;
     property.FindPropertyRelative("dynamicLightmapSTInSystem").vector4Value = value.dynamicLightmapSTInSystem;
     property.FindPropertyRelative("systemId").intValue = value.systemId;
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("instanceHash"), value.instanceHash);
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("geometryHash"), value.geometryHash);
 }
示例#2
0
 internal static EnlightenSystemAtlasInformation Read(SerializedProperty property)
 {
     return(new EnlightenSystemAtlasInformation
     {
         atlasSize = property.FindPropertyRelative("atlasSize").intValue,
         atlasHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("atlasHash")),
         firstSystemId = property.FindPropertyRelative("firstSystemId").intValue
     });
 }
 internal static void Write(SerializedProperty property, EnlightenSystemInformation value)
 {
     property.FindPropertyRelative("rendererIndex").intValue = (int)value.rendererIndex;
     property.FindPropertyRelative("rendererSize").intValue  = (int)value.rendererSize;
     property.FindPropertyRelative("atlasIndex").intValue    = value.atlasIndex;
     property.FindPropertyRelative("atlasOffsetX").intValue  = value.atlasOffsetX;
     property.FindPropertyRelative("atlasOffsetY").intValue  = value.atlasOffsetY;
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("inputSystemHash"), value.inputSystemHash);
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("radiositySystemHash"), value.radiositySystemHash);
 }
 internal static EnlightenRendererInformation Read(SerializedProperty property)
 {
     return(new EnlightenRendererInformation
     {
         renderer = property.FindPropertyRelative("renderer").objectReferenceValue,
         dynamicLightmapSTInSystem = property.FindPropertyRelative("dynamicLightmapSTInSystem").vector4Value,
         systemId = property.FindPropertyRelative("systemId").intValue,
         instanceHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("instanceHash")),
         geometryHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("geometryHash"))
     });
 }
示例#5
0
 internal static void Write(SerializedProperty property, RendererData value)
 {
     property.FindPropertyRelative("uvMesh").objectReferenceValue          = value.uvMesh;
     property.FindPropertyRelative("terrainDynamicUVST").vector4Value      = value.terrainDynamicUVST;
     property.FindPropertyRelative("terrainChunkDynamicUVST").vector4Value = value.terrainChunkDynamicUVST;
     property.FindPropertyRelative("lightmapIndex").intValue         = value.lightmapIndex;
     property.FindPropertyRelative("lightmapIndexDynamic").intValue  = value.lightmapIndexDynamic;
     property.FindPropertyRelative("lightmapST").vector4Value        = value.lightmapST;
     property.FindPropertyRelative("lightmapSTDynamic").vector4Value = value.lightmapSTDynamic;
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("explicitProbeSetHash"), value.explicitProbeSetHash);
 }
 internal static EnlightenSystemInformation Read(SerializedProperty property)
 {
     return(new EnlightenSystemInformation
     {
         rendererIndex = (uint)property.FindPropertyRelative("rendererIndex").intValue,
         rendererSize = (uint)property.FindPropertyRelative("rendererSize").intValue,
         atlasIndex = property.FindPropertyRelative("atlasIndex").intValue,
         atlasOffsetX = property.FindPropertyRelative("atlasOffsetX").intValue,
         atlasOffsetY = property.FindPropertyRelative("atlasOffsetY").intValue,
         inputSystemHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("inputSystemHash")),
         radiositySystemHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("radiositySystemHash"))
     });
 }
示例#7
0
 internal static RendererData Read(SerializedProperty property)
 {
     return(new RendererData
     {
         uvMesh = property.FindPropertyRelative("uvMesh").objectReferenceValue as Mesh,
         terrainDynamicUVST = property.FindPropertyRelative("terrainDynamicUVST").vector4Value,
         terrainChunkDynamicUVST = property.FindPropertyRelative("terrainChunkDynamicUVST").vector4Value,
         lightmapIndex = (ushort)property.FindPropertyRelative("lightmapIndex").intValue,
         lightmapIndexDynamic = (ushort)property.FindPropertyRelative("lightmapIndexDynamic").intValue,
         lightmapST = property.FindPropertyRelative("lightmapST").vector4Value,
         lightmapSTDynamic = property.FindPropertyRelative("lightmapSTDynamic").vector4Value,
         explicitProbeSetHash = SerializedPropertyUtility.ReadHash128(property.FindPropertyRelative("explicitProbeSetHash"))
     });
 }
示例#8
0
 internal static void Write(SerializedProperty property, EnlightenSystemAtlasInformation value)
 {
     property.FindPropertyRelative("atlasSize").intValue = value.atlasSize;
     SerializedPropertyUtility.WriteHash128(property.FindPropertyRelative("atlasHash"), value.atlasHash);
     property.FindPropertyRelative("firstSystemId").intValue = value.firstSystemId;
 }