Hello,
I am not able to add array.
Here is the script. It was working few months ago…
var Rotate = pc.createScript('rotate');
Rotate.attributes.add('ballHolderCompEntity', {type: 'entity', array: 'true'});
// initialize code called once per entity
Rotate.prototype.initialize = function() {
};
// update code called every frame
Rotate.prototype.update = function(dt) {
this.entity.rotateLocal(0, 3, 0);
};
As you can see following image…
Even after clicking on Parse ballHolderCompEntity
is not visible…
(Actually ballHolderCompEntity
variable appears and suddenly disappears…)
Please help… Am i doing it right?
Is there any new way to do this?
Edit:
After clicking on parse i see following thing in console…