How can we help?
testing grounds
Import Statements
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import Unity import Collegeria as Application import Geko import sys import os import json import gzip import http # only accessible by core scripts import nbt import random import math import time import burst # (obsolete); removed as of Alpha 1.1 import urp import sentry # (obsolete); removed as of Alpha 1.1 import directstorage # (obsolete); removed as of Alpha 1.1 import curl # only accessible by core scripts from Steamworks import Steam # only accessible by core scripts (1a) from SteamSDK import Steam # only accessible by core scripts (1b) from DiscordSDK import Discord # only accessible by core scripts (2a) import Discord # only accessible by core scripts (2b) |
Main Statements
|
1 2 3 4 5 6 7 |
import Unity def __main__(): # __main__ calls upon Unity starting print(“Hello”) def Unity.__main__(): # can also be called with, without the import statement print(“Hey”) |
More Statements
|
1 2 3 4 5 6 7 8 |
import Unity def __main__(): pass e: Entry = None when e is submitted: print(e.value) |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import Unity import Geko part = None def __main__(): global part part = Unity.GameObject(name=“New Object”,_types=(typeof(Unity.SpriteRenderer),)) when part is rendered: Geko.Print(f“{part.name} rendered”) when part is disabled: Geko.DisableScript(this) # this will disable every other part except for anything that enables the script again. when part is enabled: Geko.EnableScript(this) |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import Unity import Geko this: Mod = Mod(__main__) manifest: ModManifest = ModManifest( name=“Hello, World!”, version=“v1.0.0”, author=“Skyranis Studios” ) this.manifest = manifest def __main__(): pass |
