This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Include this script at the top of the scene to enable global commands | |
Usage: | |
global.showProps(object) | |
global.showScene(scene) | |
global.showSceneObject(sceneObject) | |
global.showComponent(component) | |
Original by @robertlugg | |
https://gist.github.com/robertlugg/a5161200998092ddf69cb7393f7efcc0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -----JS CODE----- | |
//@input vec3 Rotation | |
//@input float Speed | |
// Equivalent to GameObject | |
var object = script.getSceneObject(); | |
// Just like Unity Transform! | |
var transform = script.getTransform(); |