SkillAgentSearch skills...

IronPythonUnity

Program using python in Unity game engine.

Install / Use

/learn @omid3098/IronPythonUnity
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2y ago
Forks2

Languages

C#

Security Score

70/100

Audited on Feb 29, 2024

No findings