Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Is it possible to write some python code that works on my C# script in Unity ?

Discussion in 'Scripting' started by Amirh18, Jun 18, 2017.

  1. Amirh18

    Amirh18

    Joined:
    Mar 28, 2016
    Posts:
    16
    I want to be able to have an option to write some big function on python, a function that returns an int, and Pass this int into Unity. Does something like this exists and relatively easy to operate ? Thanks,
     
  2. Cynikal

    Cynikal

    Joined:
    Oct 29, 2012
    Posts:
    122
  3. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    Out of curiousity, why not just write it in C#?
     
  4. passerbycmc

    passerbycmc

    Joined:
    Feb 12, 2015
    Posts:
    1,739
    for what purpose, anything you can do in python you can do in C# pretty easily, also not like python is all that high performing or suitable for making native plugins