Search Unity

directional light

Discussion in 'Scripting' started by HersheyZombie, Apr 7, 2008.

  1. HersheyZombie

    HersheyZombie

    Joined:
    Feb 20, 2008
    Posts:
    5
    how do i find the name of a directional light so that I can refer to it in other scripts?
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    You don't usually access other objects by their names (it's possible, but not the recommended way). Usually in Unity you access other objects via references to them. See this chapter in the scripting documentation for details.