Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


scriptedimporter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scriptedimporter [2024/11/06 22:28] 97.113.69.90scriptedimporter [2025/01/15 04:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== ScriptedImporter ====== ====== ScriptedImporter ======
  
-==== Hiding Sub-Assets in the Project View ====+===== Hiding Sub-Assets in the Project View =====
 By default, assets added via ''ctx.AddObjectToAsset'' will be shown in the foldout of the imported asset in the Project view. This can be cluttered. You can hide sub assets in two ways: By default, assets added via ''ctx.AddObjectToAsset'' will be shown in the foldout of the imported asset in the Project view. This can be cluttered. You can hide sub assets in two ways:
  
Line 18: Line 18:
 var superParent = new GameObject("SuperParent_ImportWorkaround_ShouldBeDeleted"); var superParent = new GameObject("SuperParent_ImportWorkaround_ShouldBeDeleted");
 var superParent2 = new GameObject("SuperParent_ImportWorkaround_ShouldBeDeleted2"); var superParent2 = new GameObject("SuperParent_ImportWorkaround_ShouldBeDeleted2");
-superParent.transform.parent = superParent.transform;+superParent2.transform.parent = superParent.transform;
                          
 childToHide.transform.parent = superParent2.transform; childToHide.transform.parent = superParent2.transform;
Line 26: Line 26:
  
  
-==== Debugging ====+===== Debugging =====
  
 ScriptedImporters run on Asset Import worker processes((You can confirm this if you see ''[Worker0]'' on output logged by a ScriptedImporter)). These importers can't be debugged normally with the Mono Debugger in Rider or Visual Studio. Breakpoints can be set, but will never be triggered, because the breakpoint is being set in the Editor process, not the Worker process. ScriptedImporters run on Asset Import worker processes((You can confirm this if you see ''[Worker0]'' on output logged by a ScriptedImporter)). These importers can't be debugged normally with the Mono Debugger in Rider or Visual Studio. Breakpoints can be set, but will never be triggered, because the breakpoint is being set in the Editor process, not the Worker process.
scriptedimporter.1730932092.txt.gz · Last modified: 2025/01/15 04:35 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki