Search Unity

Unity.Tiny.TinyBuildOptions.Project does not exist.

Discussion in 'Project Tiny' started by Kobusvdwalt, Jan 10, 2019.

  1. Kobusvdwalt

    Kobusvdwalt

    Joined:
    Jul 8, 2012
    Posts:
    4
    Hello all,

    I basically want to know what project is currently loaded. And if possible the path to that project.

    I am using the pipeline described here :
    https://docs.unity3d.com/Packages/com.unity.tiny@0.13/api/Unity.Tiny.TinyBuildPipeline.html

    At the bottom of the documentation it is written "... and Unity.Tiny.TinyBuildOptions.Project properties." But the TinyBuildOptions.Project field does not exist.

    So any ideas on finding out which project is currently loaded in the build process ?

    Thanks in advance,
    Kobus
     
  2. etienne_unity

    etienne_unity

    Unity Technologies

    Joined:
    Aug 31, 2017
    Posts:
    53
    Hi @Kobusvdwalt

    The currently loaded Tiny project build option can be retrieved using the TinyBuildPipeline.
    WorkspaceBuildOptions property.

    TinyBuildPipeline.LoadProject(projectPath) takes an AssetDatabase path, e.g. "Assets/MyProject/MyProject.utproject".

    We've kept the Tiny Editor API internal by design for now, so you can't access the TinyProject object directly. The only public API exposed at the moment enables developers to build a project in batch mode, which is useful in a continuous integration / deployment context - but programmatically authoring a TinyProject is not exposed yet, mostly because this API will change at lot in the next few releases.