Editor: show attributes of scripts that are attributes

Is it possible in the editor to specify a script as an attribute and, when selected, also show the attributes with that script in the editor (if there are any)? I can select a script as an “asset” attribute, but the editor does not show the attributes with that script.

Thanks,
– Rob

No, that’s not what I mean.

I have a situation in which I want to be able to use a script (let’s call it “A”) which takes, as one of its attributes, another script (let’s call that “B”). The editor display GUI elements for specifying public attributes of function “A” (using attributes.add), but I would now also like to see the public attributes of function “B”.

Is there a way to do that?

Nope.

The closest you can get to it is to cache the script on initialize

e.g

// initialize code called once per entity
MouseInput.prototype.initialize = function() {
    this.orbitCamera = this.orbitCameraEntity.script.orbitCamera;