GithubHelp home page GithubHelp logo

thautwarm / vscode-unitypython Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 73 KB

vscode, unitypython, game/ui, hot reload, realtime preview, all-platform, win!

License: Apache License 2.0

C# 1.27% Python 94.96% TypeScript 3.78%

vscode-unitypython's Introduction

VSCode-UnityPython

UnityPython is a Python implementation that enables all-platform UI/game development and development time hot-reloading.

Introduction

This extension is enabled when a .unitypython.json is included anywhere in a workspace folder.

Multi-root workspaces are supported, in case you need to edit Unity C# and UnityPython simultaneously.

Features:

  1. Report if unitypython is not installed in the selected Python environment (by Microsoft Python Extension).
  2. Compile Python scripts to ${unitypython.build-output-directory}(default: Compiled) directory on save. Python executable in the selected environment is used.
  3. Excellent Pylance Support: the bundled stub files unitypython-typeshed are copied to ${unitypython.build-output-directory}(default: unitypython-typeshed) directory.

Usage

  1. Activate your preferred Python environment (Python >= 3.8 is a must, Python 3.10 is better), and do pip install upycc --upgrade
  2. Install vscode-unitypython extension, and create a .unitypython.json in your workspace.
  3. (for Unity users who wants to hot reload UnityPython) Copy Assets/FileWatcher.cs and Assets/PythonHotReloader.cs to your Unity project's Assets folder, and attach these two components to a top-level empty game object.

NOTE: The release is still preview, please update this extension frequently.

vscode-unitypython's People

Contributors

thautwarm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

vscode-unitypython's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.