scriptedimporter
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
scriptedimporter [2023/06/24 02:44] – created 97.126.63.199 | scriptedimporter [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ScriptedImporter ====== | ====== ScriptedImporter ====== | ||
- | ==== Debugging ==== | + | ===== Hiding Sub-Assets in the Project View ===== |
+ | By default, assets added via '' | ||
+ | |||
+ | === ScriptableObjects === | ||
+ | Subassets of type ScriptableObject may be hidden by setting '' | ||
+ | |||
+ | === GameObjects === | ||
+ | The hiding behavior of GameObjects is special cased by ScriptedImporter and '' | ||
+ | |||
+ | You can take advantage of this to hide GameObjects by creating a fake parent above them, but not adding it to the imported asset. For example: | ||
+ | < | ||
+ | // This object will be included in the imported asset. | ||
+ | var childToHide = new GameObject(" | ||
+ | |||
+ | // This object will *not* be included in the asset, despite being referenced by child. | ||
+ | var superParent = new GameObject(" | ||
+ | var superParent2 = new GameObject(" | ||
+ | superParent2.transform.parent = superParent.transform; | ||
+ | |||
+ | childToHide.transform.parent = superParent2.transform; | ||
+ | |||
+ | ctx.AddObjectToAsset(" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Debugging ===== | ||
+ | |||
+ | ScriptedImporters run on Asset Import worker processes((You can confirm this if you see '' | ||
+ | |||
+ | Rider can connect to these worker processes manually if you want to debug them via " | ||
+ | |||
+ | |||
- | ScriptedImporters run on Asset Import worker threads((You can verify this if you see '' | ||
scriptedimporter.1687574677.txt.gz · Last modified: 2025/01/15 04:35 (external edit)