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);
 }
 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);
 }
예제 #3
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);
 }
예제 #4
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;
 }