Search Unity

How change parameters of Camera of Editor?

Discussion in 'Editor & General Support' started by krisu, Oct 2, 2018.

  1. krisu

    krisu

    Joined:
    Jul 10, 2013
    Posts:
    40
    Hello
    Someone know, how change some parameters for camera of editor (not game)?
    I making levelmap in ProBuilder, and i dont see anything near the camera.
    I want change nearClipPlane to something like 0.1f;

    I try making little extension by code:

    Code (CSharp):
    1. [Menuitem("Fix Camera Near");
    2. public static CameraFix()
    3. {
    4.       if(Camera.current != null)
    5.           Camera.current.nearClipPlane = 0.1f;
    6. };
    but this doesnt work...