Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

How does ProjectFolderModule.cs generate FolderData?

Discussion in 'EditorXR' started by jkredzvr, Jun 2, 2017.

  1. jkredzvr

    jkredzvr

    Joined:
    Jul 1, 2016
    Posts:
    1
    Could someone give a high level explanation of how the ProjectFolderModule creates FolderData? I am trying to track down what initiates the method calls for the CreateFolderData co-routines.

    I wanted to extend the Workspace prefab so it could populate a workspace with Images gameobjects in a specific project folder and instantiate an "Image GameObject". It would work very similarly to the ProjectWorkSpace prefab.
     
  2. amirebrahimi_unity

    amirebrahimi_unity

    Unity Technologies

    Joined:
    Aug 12, 2015
    Posts:
    400
    Please keep in mind that these are internal modules that we are not planning to expose, which is why they are not documented. IUsesProjectFolderData is how you would interface with getting project folder data, which is probably what you are making use of.

    Re: when folder data is collected -- the module updates it on startup and also any time the project window has changed. This is self contained in the ProjectFolderModule.