SDK Bug & Feature Requests

Please check out the following rules and use the provided template when posting a bug report! Off-topic posts will be deleted.http://bit.ly/vrchat-bug-reports
[3.10.6] "Use All Tracking Keys" toggle may be unclickable, and the left half of field values may not respond to input
What happens Two related problems occur under certain conditions: 1) The "Use All Tracking Keys" checkbox works only at certain Inspector widths. 2) The left half of each field value does not respond to clicks when the Inspector is wide. See the attached image 1. Conditions This happens when the inspector of components placed below the VRCAvatarDescriptor assigns to EditorGUIUtility.labelWidth . This typically happens when a component has some multi-value fields (Vector, Rect, Quaternion and others) or fields with a custom PropertyDrawer or DecoratorDrawer since Unity internal code for them assigns that, but custom inspector code can also do it. In some cases, the issue does not occur even when these conditions are met, so there may be additional factors, such as Unity Editor internal timing or internal Inspector ordering. I have not been able to find reliable reproduction steps. It seems most likely to happen right after adding such a component to the Avatar Root, but I don't know whether this always reproduces it. Known components that meet this condition and are likely to be added to the Avatar Root: All AAO: Avatar Optimizer components (<=1.9.21) (PropertyDrawer) VQT Avatar Converter Settings (as of 3.0.3) (PropertyDrawer) MA Mesh Settings (as of 1.18.7) (multi-value field) Components that also meet this condition but are unlikely to be added to the Avatar Root: Unity Collider components (multi-value field) Workarounds a) Collapse inspector for components below VRCAvatarDescriptor. See the attached image 2. b) Move the VRCAvatarDescriptor component to the bottom of the component list. c) Click the horizontal position where checkboxes on other components are drawn, rather than the position where this checkbox is drawn. See the attached image 3. d) Component inspector developers can prevent this problem by setting EditorGUIUtility.labelWidth = 0; after drawing their component (example: [5]). Note that this does not work in PropertyDrawer s, because Unity's internal code sets EditorGUIUtility.labelWidth after your PropertyDrawer runs [4]. Cause VRCSDK 3.10.6 added AvatarDescriptorEditor3.CreateInspectorGUI , which simply wraps OnInspectorGUI in an IMGUIContainer , and this causes the problem. When Unity creates its own IMGUIContainer for an inspector, it uses a closure that does many things before and after calling OnInspectorGUI [1]. The most important of these are EditorGUIUtility.ResetGUIState(); [2] and EditorGUIUtility.hierarchyMode = true; [3]. The missing ResetGUIState() call causes the unclickable checkbox and the unresponsive left half of field values. Additional Notes VRCSDK 3.10.6 has problem that label area is narrower than that of other components. The cause of this problem is the missing hierarchyMode = true . [1] https://github.com/Unity-Technologies/UnityCsReference/blob/2022.3.22f1/Editor/Mono/UIElements/Inspector/InspectorElement.cs#L623 [2] https://github.com/Unity-Technologies/UnityCsReference/blob/2022.3.22f1/Editor/Mono/UIElements/Inspector/InspectorElement.cs#L659 [3] https://github.com/Unity-Technologies/UnityCsReference/blob/2022.3.22f1/Editor/Mono/UIElements/Inspector/InspectorElement.cs#L667 [4] https://github.com/Unity-Technologies/UnityCsReference/blob/2022.3.22f1/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs#L191 [5] https://github.com/anatawa12/AvatarOptimizer/pull/1816
1
·
Bug Report
·
tracked
[BUG] [SAFETY] Avatar Stations On By Default
Issue A bug with the current SDK requires the GameObject which a VRC_Station is attached to, to be enabled on upload. As a result, stations are on by default if safety settings block user animations. This is BAD. Stations may be added by creators for special purposes, such as carrying other players, or animation-tied amusement. Having these on by default can create experiences where a player with stations receives UNWANTED interactions if animations are disabled. This is especially true for Quest/Mobile/Android, where animations are more likely to be disabled by default. This therefore poses a safety risk that is not mitigable by avatar creators. Potential Resolutions Add a "Disabled by Default" dropdown to the script with the options "Never"; "Always", which would disable the GameObject the VRC_Station is attached to on enable; and "Collider Only", which would disable only the provided box collider itself on enable. This would account of different creator preferences. — Whilst VRChat officially recommends disabling the collider only, the behavior of disabling the GameObject itself may be highly desirable in some case, and some popular station add-ons use this behavior. Giving developers the ability to choose between implementations allows for greater flexibility, and prevents breaking existing animations. Allow uploading with script disabled. — If the script can be disabled on upload, it won't matter anymore, as the station will be disabled when the avatar loads, making it opt-in via animation, not opt-out.
3
·
Bug Report
·
tracked
World Description Garbled Upon Submission With Certain Words And No Clear Pattern
This appears to affect all platforms and all SDK versions. Whether a world description is changed on Creator Companion or on the website, the same issue occurs. Seems to be a backend issue. I am trying to add a description to a newly uploaded world. The word "Black Jack" or "Blackjack" being in the description causes the text to become garbled. The text is removing all punctuation, symbols, and numbers and also scrambling words in a random way. This does not occur if the only word in the description is "blackjack" with no other text. I also noticed that removing numbers, symbols, and punctuation affects this by making text less garbled, but the word "black jack" will still be changed to say "stack jack". It seems that whatever is validating world descriptions is significantly malfunctioning with certain inputs. Attached is a screen recorded video showing some of this behavior, using a description submission on the website. The same issue occurs if the text is submitted in the Unity SDK. For the time being, I'm using "BIack Jack" (the L replaced with a capital i) in the world description, and that validates correctly. Sample input: [Under construction] Chill space station with lots of activities․ There are also some VR 3D 180 degree photos on display of behind the scenes NASA stuff and of a NASA museum. Based on Celestia by Zelfine․ Activities˸ Uno‚ Black Jack‚ Poker‚ Pool Table‚ Crane Machine‚ Slot Machine‚ Gachapon‚ Space Invaders‚ Asteroids‚ Jenga‚ Connect 4․ This world is not affiliated with nor endorsed by NASA․ Any opinions expressed belong to the creator․ Output: underc onstructionch illsp acest ationwi thlo tsof ac tivitiesthe reare als osom evrd de gr eep hotoso ndispl ay ofbehin dt hescen esn asastu ffan dofan asa mu s eumb asedonc elest ia byzelfin ea ctivitie sunostackja ckpo kerpo oltab lecran emac hinesl otmac hinegach apon spaceinv adersaste roids jengaconn ectthiswor ldisno taffili at edwi thnor en dor sedbynasaa nyop ini onsexpre ss edbel ong tothecre ator Sample input: Under construction Chill space station with lots of activities Based on Celestia by zelfine Activities Uno Black Jack Poker Pool Table Crane Machine Slot Machine Gachapon Space Invaders Arcade Machine Asteroids Arcade Machine Jenga Connect Four Output: [Note that Black Jack is changed to stack jack]: under construction chill space station with lots of activities based on celestia by zelfine activities uno stack jack poker pool table crane machine slot machine gachapon space invaders arcade machine asteroids arcade machine jenga connect four Sample input: Black Jack Output (Correct): Black Jack
2
·
Bug Report
·
tracked
Load More
→