Ejemplo n.º 1
0
 protected override void OnSceneGUI()
 {
     // Each handles manipulate only one light
     // Thus do not rely on serialized properties
     Light light = target as Light;
     HDAdditionalLightData additionalLightData = targetAdditionalData;
     if (additionalLightData.lightTypeExtent == LightTypeExtent.Punctual && (light.type == LightType.Directional || light.type == LightType.Point))
         base.OnSceneGUI();
     else
         HDLightUI.DrawHandles(additionalLightData, this);
 }
Ejemplo n.º 2
0
        protected override void OnSceneGUI()
        {
            // Each handles manipulate only one light
            // Thus do not rely on serialized properties
            HDLightType lightType = targetAdditionalData.type;

            if (lightType == HDLightType.Directional ||
                lightType == HDLightType.Point ||
                lightType == HDLightType.Area && targetAdditionalData.areaLightShape == AreaLightShape.Disc)
            {
                base.OnSceneGUI();
            }
            else
            {
                HDLightUI.DrawHandles(targetAdditionalData, this);
            }
        }