Beispiel #1
0
        protected override void handleBrowseButtonClicked(Sleek2ImageButton button)
        {
            InspectableFilePath  inspectableFilePath  = (InspectableFilePath)base.inspectable.value;
            FileBrowserContainer fileBrowserContainer = DevkitWindowManager.addContainer <FileBrowserContainer>();

            fileBrowserContainer.transform.anchorMin = new Vector2(0.25f, 0.25f);
            fileBrowserContainer.transform.anchorMax = new Vector2(0.75f, 0.75f);
            fileBrowserContainer.mode          = EFileBrowserMode.FILE;
            fileBrowserContainer.searchPattern = inspectableFilePath.extension;
            fileBrowserContainer.selected      = new FileBrowserSelectedHandler(this.handlePathSelected);
        }
Beispiel #2
0
        protected virtual void readInfo(IFormattedFileReader reader)
        {
            InspectableFilePath inspectableFilePath = this.albedoPath;

            inspectableFilePath.absolutePath = reader.readValue("Albedo");
            this.albedoPath     = inspectableFilePath;
            inspectableFilePath = this.metallicPath;
            inspectableFilePath.absolutePath = reader.readValue("Metallic");
            this.metallicPath   = inspectableFilePath;
            inspectableFilePath = this.emissionPath;
            inspectableFilePath.absolutePath = reader.readValue("Emission");
            this.emissionPath = inspectableFilePath;
        }