Search Unity

Missing script API features present in Lighting window

Discussion in 'Linux' started by Yukinohito, Oct 9, 2016.

  1. Yukinohito

    Yukinohito

    Joined:
    Aug 25, 2016
    Posts:
    2
    Working on Linux Mint 17.3 Cinnamon 64-bit
    Using Unity 5.4.0p1 Linux build, unity-editor-5.4.0p1 20160810_amd64.deb

    Trying tp write script to bake lights with specific parameters.

    First of all, while in Lightning window all that stuff gathered together, in scripting API docs it is scattered through classes and have quite different names, so have to make analysis to be able to determine which property corresponds to which window option.

    Secondly some options appear to be missing in docs, namely: sun (found in forums that this feature still pending even though it was told it will be added in version 5.4.0), Baking Resolution, Ambient Occlusion value (not maximal, which is present), Final Gather switcher, Atlas size (as one number), Default Parameters. If any of them will have different (from desired) values, it is impossible to fix it via script then. Using c# Reflection I was able to find missing Baking Resolution, Ambient Occlussion value, but for FinalGather can see its numercial values, not switcher. Atlas size controlled by putting same number in both fields, Default Parameters nowhere to be found.

    One more problem appear to be LightmapSettings.lightmapsMode which can be set via script, but changes now shown in lightning window after that. This seems to be window issue itself as it does not update on value change. If bake lights from window and from script though seems window's value persist while script one gone missing after change.

    In conclusion have again to emphasise problems with scripting api documentation and kindly ask you to support scripting for all possible features which can be manually done in editor.

    p.s. And please don't forget to expose sun in scripting so we can set it. There are situation when brightest light source near is not the sun so we need to put it specifically.
     

    Attached Files: