Skip to content

unitycoder/IronPythonUnity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IronPythonUnity

Sample Usage:

  • Create a game object
  • Add PyBehaviour
  • Drag your python file into script field

image

  • Play the game

Sample Python code:

Hello word from Awake and Update functions in python:

import UnityEngine as unity
count = 1

def Awake():
    unity.Debug.Log("Hello from python Awake " +
                    gameObject.name + str(count))


def Update():
    global count
    count += 1
    unity.Debug.Log("Hello from python Update" + str(count))

Simple object rotator:

import UnityEngine as unity


def Update():
    transform.Rotate(1, 1, 1)

Platforms:

  • PC: supprted
  • Mobile: not-supported

About

Program using python in Unity game engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%