Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Editor:4 Bugs : Handles and Gizmos are completely broken..Area Light Range and Radius mixed up. etc.

Discussion in '2022.1 Beta' started by Quatum1000, Nov 11, 2021.

  1. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    Totally strange behavior of enable/disabled Gizmos.. No handles visible anyway.
    Displaying handles and gizmos are completely broken in Gizoms-Menu.

    If gizmos are selected as enabled, then they are disabled in the scene view.


    Untitled-1.jpg Untitled-2.jpg

    Handles for Lights and Probs are not visible at all since version 2021.xx
    This is ugly because there is no visual representation of what the settings are.

    Worked at last in 2019.x
    Untitled-3.jpg


    Area Lights .Range and .Radius are added together into the .Range value.
    It's not possible to un-puzzle the correct values by script.

    Untitled-4.jpg


    Code (CSharp):
    1. using UnityEngine;
    2.  
    3. [ExecuteAlways]
    4. public class CheckAreaLightProps : MonoBehaviour
    5. {
    6.     public Light Area;
    7.  
    8.     private void Update()
    9.     {
    10.         Area = GetComponent<Light>();
    11.         Debug.Log("Intensity  " + Area.intensity);
    12.         Debug.Log("Range  " + Area.range);
    13.         Debug.Log("ShowRadius  " + Area.shadowRadius);
    14.         Debug.Log("Multiplyer  " + Area.bounceIntensity);
    15.  
    16.         Debug.Log("--------");
    17.     }
    18. }
     
  2. Carpe-Denius

    Carpe-Denius

    Joined:
    May 17, 2013
    Posts:
    842
    You can find your disc range value in "AreaSize.x". The other range is light distance.

    Gizmos are a known (and probably fixed in a15) issue.

    You can right click on your light gameobject, choose "Properties" and you'll get an inspector locked to the object. Now keep it selected in the hierarchy, right click on "inspector" and switch to debug mode. Now you can change the values in the normal properties inspector and see which variables change.
     
  3. Quatum1000

    Quatum1000

    Joined:
    Oct 5, 2014
    Posts:
    889
    Thank you.. that helps!
     
  4. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
  5. Deleted User

    Deleted User

    Guest

    Will we get the rays back? In older versions of Unity, directional lights displayed rays showing the direction of the light; they have disappeared. Will we get them back?

    Capture d’écran_2021-11-13_13-04-22.jpg
    Before:

     
    Shizola likes this.