Skip to content
paige edited this page Mar 4, 2024 · 7 revisions

UnityScript Docs

the hub for UnityScript information, most things will appear here.. eventually.. when I get around to it


Installations

stable release versions are on npm

experimental versions are on github

npm install unityscript
npm install paishee/unityscript      



Workspace

Main gateway for accessing the API

Properties:

πŸ›ˆ id
πŸ›ˆ scenes
πŸ›ˆ objects
πŸ›ˆ events
πŸ›ˆ projectDir
πŸ›ˆ assetsDir
πŸ›ˆ scenesDir
πŸ›ˆ scriptsDir
πŸ›ˆ workspaceEvents
πŸ›ˆ __instances

Methods:

πŸ›ˆ open()
πŸ›ˆ on()
πŸ›ˆ __buildScenes()
πŸ›ˆ __buildScripts()
πŸ›ˆ __formSettings()
πŸ›ˆ __generateID()



Event

Class for the many events

Properties:

πŸ›ˆ name
πŸ›ˆ listeners

Methods:

πŸ›ˆ listen()
πŸ›ˆ fire()



Scene

Typing for a Unity Scene

Properties:

πŸ›ˆ placeholder

Methods:

πŸ›ˆ spawn()



GameObject

Typing for a GameObject in a Scene

Properties:

πŸ›ˆ placeholder

Methods:

πŸ›ˆ placeholder()



Script

Typing for a Unity C# Script

Properties:

πŸ›ˆ placeholder

Methods:

πŸ›ˆ placeholder()



Light

Typing for a light source in a Scene

Properties:

πŸ›ˆ placeholder

Methods:

πŸ›ˆ placeholder()



Camera

Typing for a camera in a Scene

Properties:

πŸ›ˆ placeholder

Methods:

πŸ›ˆ placeholder()



EventGroup

A list of events
Extension of a Soup but has no extra properties or methods

SceneGroup

A list of scenes
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



ScriptGroup

A list of scripts
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



SceneChildGroup

A list of a scene's children
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



SceneGameObjectGroup

A list of a scene's game objects
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



SceneLightGroup

A list of a scene's lights
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



SceneCameraGroup

A list of a scene's cameras
Extension of a Soup and has no extra properties

Methods:

πŸ›ˆ create()



GameObjectGroup

A list of every game object across every scene
Extension of a Soup but has no extra properties or methods


Clone this wiki locally