The WWDC24 video "Build a spatial drawing app with RealityKit" https://developer.apple.com/wwdc24/10104 at 12:04 includes a slide showing a Reality Composer Pro shader graph that features wonderful inline documentation comment boxes:
Are shader graph inline comments a new feature that Reality Composer Pro supports? This would be extraordinarily useful, as complex shader graphs can be challenging to decipher.
If so, how are inline shader graph comments created in Reality Composer Pro?
Hello! Yes indeed, this is a new feature in RCP.
To use this, you first select various nodes and group them together, which you can do by right-clicking on them and selecting "Group". Once created, you can drag-and-drop nodes into or out of the group, and you can edit the group's title string, as well as adding an optional comment below it.