Esempio n. 1
0
 public void SetComponentInfo(LSS_Models.LightModel info)
 {
     component.enabled        = info.enabled;                            // Parameter Verbose Name: Enabled
     component.intensity      = info.intensity;                          // Parameter Verbose Name: Intensity
     component.range          = info.range;                              // Parameter Verbose Name: Range
     component.shadows        = info.shadows;                            // Parameter Verbose Name: Shadows
     component.shadowStrength = info.shadowStrength;                     // Parameter Verbose Name: BakeType
     component.color          = info.color;                              // Parameter Verbose Name: Color
 }
Esempio n. 2
0
        // Only need to do this in editor due to game will not be creating/saving scenarios or lightmaps.
                #if UNITY_EDITOR
        public override object GetComponentInfo()
        {
            var componentInfo = new LSS_Models.LightModel();

            componentInfo.uniqueId = GetOrCreateUniqueID(gameObject).uniqueId;

            componentInfo.enabled        = component.enabled;                       // Parameter Verbose Name: Enabled
            componentInfo.intensity      = component.intensity;                     // Parameter Verbose Name: Intensity
            componentInfo.range          = component.range;                         // Parameter Verbose Name: Range
            componentInfo.shadows        = component.shadows;                       // Parameter Verbose Name: Shadows
            componentInfo.shadowStrength = component.shadowStrength;                // Parameter Verbose Name: BakeType
            componentInfo.color          = component.color;                         // Parameter Verbose Name: Color

            return(componentInfo);
        }