Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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:
    102
    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.