I’m trying to create a script for an entity by:
e.script.create('pulse',function(){
///codes in here////
)};
As usual, I add attribute for script at the beginning of above function like this:
Raycast.attributes.add('sphereEntity', {type: 'entity'});
Raycast.attributes.add("doubleClickSpeed", {type: "number", default: 0.1, title: "Double Click Speed",
or I even tried this
e.script.attribute('sphereEntity','entity','HitMaker1');
e.script.attribute("doubleClickSpeed", 'number', 0.1);
But none of them worked.
Can anyone help me?
This is my project: https://playcanvas.com/project/534489/overview/computergraphic
Error is in clone.js.
Thanks a lot.