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 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")) }); }
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")) }); }
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")) }); }