コード例 #1
0
    private static void GetLightSettings()
    {
        string output  = "";
        string newLine = System.Environment.NewLine;

        output += MyRoutines.GetObjectPropertyString("Ambient Light", RenderSettings.ambientLight);
        output += MyRoutines.GetObjectPropertyString("Ambient Intensity", RenderSettings.ambientIntensity);
        output += MyRoutines.GetObjectPropertyString("Ambient Mode", RenderSettings.ambientMode);
        output += MyRoutines.GetObjectPropertyString("Fog", RenderSettings.fog);
        output += MyRoutines.GetObjectPropertyString("Fog Color", RenderSettings.fogColor);
        output += MyRoutines.GetObjectPropertyString("Fog Mode", RenderSettings.fogMode);
        output += MyRoutines.GetObjectPropertyString("Fog Start", RenderSettings.fogStartDistance);
        output += MyRoutines.GetObjectPropertyString("Fog End", RenderSettings.fogEndDistance);
        output += MyRoutines.GetObjectPropertyString("Fog Skybox", RenderSettings.skybox);
        output += MyRoutines.GetObjectPropertyString("Sun ", RenderSettings.sun);
        Debug.Log(output);
    }