Custom components are not allowed on EditorOnly-tagged GameObjects
tracked
bd_
When a non-whitelisted component is found on a GameObject marked as EditorOnly, the SDK does not allow you to build an avatar. The SDK should allow this but strip the game object (and therefore component) off during upload.
Log In
Fax
tracked
TheHelpfulHelper
This literally just requires them to put this:
if (component.gameObject.tag == "EditorOnly")
{
continue;
}
in "VRC.SDKBase.Validation.ValidationUtils.cs" at line 46
Please, for the love of god. This canny is more than 3 years old and has 120 upvotes...
bd_
TheHelpfulHelper: It actually requires considering all parents of the GameObject in question as well, but yes.
Pumkin
Would be great. Too bad it's stuck in canny hell
bd_
The use case for this, in this case, was to add a script which would overwrite the VRCCam position and size when this particular avatar is being built.