Beispiel #1
0
 public void Read(AssetStream stream)
 {
     ProbeOcclusionLightIndex = stream.ReadInt32();
     OcclusionMaskChannel     = stream.ReadInt32();
     if (IsReadLightmappingMask(stream.Version))
     {
         LightmappingMask = stream.ReadInt32();
     }
     if (IsReadIsBaked(stream.Version))
     {
         LightmapBakeMode.Read(stream);
         IsBaked = stream.ReadBoolean();
         stream.AlignStream(AlignType.Align4);
     }
 }
Beispiel #2
0
 public void Read(AssetReader reader)
 {
     ProbeOcclusionLightIndex = reader.ReadInt32();
     OcclusionMaskChannel     = reader.ReadInt32();
     if (IsReadLightmappingMask(reader.Version))
     {
         LightmappingMask = reader.ReadInt32();
     }
     if (IsReadIsBaked(reader.Version))
     {
         LightmapBakeMode.Read(reader);
         IsBaked = reader.ReadBoolean();
         reader.AlignStream(AlignType.Align4);
     }
 }