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