Skip to content

fix: ignore EditorOnly hierarchy in validator#779

Open
hai-vr wants to merge 1 commit intoBasisVR:developerfrom
hai-vr:fix-editoronly-validation
Open

fix: ignore EditorOnly hierarchy in validator#779
hai-vr wants to merge 1 commit intoBasisVR:developerfrom
hai-vr:fix-editoronly-validation

Conversation

@hai-vr
Copy link
Copy Markdown
Contributor

@hai-vr hai-vr commented Apr 22, 2026

During avatar build, all GameObject hierarchy tagged with EditorOnly is removed from the avatar (before NDMF even runs). Therefore, only collect components pertaining to transforms that will exist during the build for the validation of Renderers, SkinnedMeshRenderers, and Transforms.

During avatar build, all GameObject hierarchy tagged with EditorOnly is removed from the avatar (before NDMF even runs). Therefore, only collect components pertaining to transforms that will exist during the build for the validation of Renderers, SkinnedMeshRenderers, and Transforms.
@Toys0125
Copy link
Copy Markdown
Contributor

Putting my two cents, if you doing test-in-editor for the avatar those objects will still be there and could break the system if not properly accounted for...

@Toys0125
Copy link
Copy Markdown
Contributor

It would better if we did a build hook that properly accounts for those objects.

@hai-vr
Copy link
Copy Markdown
Contributor Author

hai-vr commented Apr 22, 2026

Putting my two cents, if you doing test-in-editor for the avatar those objects will still be there and could break the system if not properly accounted for...

Afaik Test in Editor also removes those EditorOnly objects

https://github.com/BasisVR/Basis/blob/developer/Basis/Packages/com.basis.sdk/Scripts/Editor/SDKInspector/BasisAvatarSDKInspector.cs#L663

@Toys0125
Copy link
Copy Markdown
Contributor

Okay don't see any other issue as the basis avatar for the "before" prefab is not running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants