2

Script API documentation incorrect on member access

Most of the usable properties in the SceneObjectScript class are actually "protected" and not "public", but the documentation shows them as public. It should updated to reflect that.

Come to think of it, why aren't these properties and most of the methods actually public? I'd like to be able to pass a handle to my SceneObjectScript to other classes and have them use properties and methods on it, but to do so requires me to create lots of delegates and pass handles to methods and private properties into those classes. Here's an ugly example:

new SomeUtilityClass(
ScenePrivate,
ObjectPrivate,
Script,
Log,
PostScriptEvent,
SubscribeToScriptEvent,
UnsubscribeFromScriptEvent,
StartCoroutine,
Wait
);

It's ridiculous and I'm not sure what's gained by having anything in the API be protected, given how scripts work.

13 comments

Please sign in to leave a comment.