A Unity3d installation finder and a command line helper.
Project description
funity
A Unity3d installation finder and command line helper.
Installation
pip install funity
Usage
In Terminal
python -m funity
# Outputs a JSON-formatted file containing all Unity3d editors found in the current working directory.
# editor.cache
# [
# "/Applications/Unity/Hub/Editor/2019.2.6f1"
# ]
In Python
from funity import *
editors = UnityEditor.find_all()
editor = editors[0]
project = UnityProject('/Users/you/Projects/HelloWorld')
return_code = editor.run(
'-projectPath', str(project),
'-buildTarget', 'Win64',
'-executeMethod', 'BuildPlayerCommand.Execute',
cli=True, # Shorthand for '-batchmode', '-nographics', '-quit', '-silent-crashes'.
log_func=lambda l: print(l, end='') # Prints all logs from Unity.
)
Changelog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funity-0.0.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file funity-0.0.1.tar.gz
.
File metadata
- Download URL: funity-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
750033b69d8202236b1accda85eb4fc2a5f09f25004e1c60c28093a35ab9e092
|
|
MD5 |
a701ed1f04536727f5eeffb227621296
|
|
BLAKE2b-256 |
f9a826b19fa5d4ecd3d648ce8f7a4e3438e79e2f5981fa487aa6d9f8c0933702
|
File details
Details for the file funity-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: funity-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b140bb29c36010a4619e8529eaef20aaa1f310be7629a822e41aaadde3ce6a52
|
|
MD5 |
238ef5b8963d58265331c94b117615a7
|
|
BLAKE2b-256 |
6671df81be15633a32ef2766b71eb420ffb909aa8ba36a68f7fc17ee1f6193ac
|