Annoying noob here again!
I’m trying to attach a simple script to an entity using the example here: https://readme.highfidelity.com/v1.0/docs/attaching-a-script-to-an-entity
I’ve tried putting the url http://business.ozblog.me/scripts/changeColorOnClickDown.js in the script property of my freshly created red cube, I’ve tried pasting in the code, nothing gives any reaction on clicking the cube (I’m using desktop display mode though I do have a vive attached, mouse is selected under avatar->input devices )
I definitely have the cube selected as I can change it’s other properties and see that happen in edit mode.
Am I missing a step? Do I need to restart the server when making script changes? (Tried that anyway to no avail)
The log shows nothing instructive, either the click isn’t happening or the code binding didn’t work, any ideas?
When does code become active? is it as soon as you paste in to the script field? When you close the edit window? Do you have to exit edit mode? restart the server? Reload the cache? The docs are a bit light on these details
a bit more info: I’ve tried in VR now too and shooting the cube with the hand controllers or generally touching it with avatar hands doesn’t work either… I’m sure it’s something straightforward but tutorial docs should work “out of the box” else confusion reigns!