Debug.LogWarningFormat("Missing attribute SkyUniqueID on class {0}. Class won't be registered as an available sky.",skyType);
}
if(uniqueID==0)
if(uniqueID==0)
{
Debug.LogWarningFormat("0 is a reserved SkyUniqueID and is used in class {0}. Class won't be registered as an available sky.",skyType);
continue;
if(m_SkyTypesDict.TryGetValue(uniqueID,outvalue))
if(m_SkyTypesDict.TryGetValue(uniqueID,outvalue))
{
Debug.LogWarningFormat("SkyUniqueID {0} used in class {1} is already used in class {2}. Class won't be registered as an available sky.",uniqueID,skyType,value);
// For the baking sky, we don't want to take the sun into account because we usually won't include it (this would cause double highlight in the reflection for example).
// So we pass null so that's it doesn't affect the hash and the rendering.