The bottom-most code sample for “BindToRenderStep” says that “UnbindFromRenderStep” will throw an error if not wrapped in a pcall, but this is incorrect. It never throws an error, even if the passed function name to unbind is invalid.
Additionally, the documentation for “UnbindFromRenderStep” correctly states that it does not throw an error.
Thanks again for flagging this. You were right that this last code sample was inaccurate. I went ahead and updated it after confirming with the team - it may require a refresh to see a change. Feel free to continue to flag anything else you might spot.
Hi, the code sample was indeed updated, but the description above still states that it throws an error and describes a use of pcall() which no longer exists.