Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Python scripting

Discussion in 'Scripting' started by robbaz1327, Feb 12, 2019 at 3:24 AM.

  1. robbaz1327

    robbaz1327

    Joined:
    Tuesday
    Posts:
    1
    I am a beginner. I want to use Python in Unity. But I can not find the tutorials. Are there any tutorials I can follow?
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    24,459
    You can't use python in Unity properly. Main language is C#
     
    Joe-Censored likes this.
  3. drcrck

    drcrck

    Joined:
    May 23, 2017
    Posts:
    143
    Unity doesn't support Python. There might be some plugins but I doubt they will allow you to make anything more complex than printing "Hello Unity" to the console.

    Use C#, the language of the gods.
     
  4. simonlvschal

    simonlvschal

    Joined:
    Nov 17, 2015
    Posts:
    257
    i dont get how u heard unity allows python barely any games exist in that language. nor should you use python to make games. its slow and quite outdated.

    Unity uses C# as its main language and Java can still be used but i am pretty sure unity is going to be a C# explicite engine.
     
  5. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    1,294
    If you really want python - use Godot instead.
     
  6. simonlvschal

    simonlvschal

    Joined:
    Nov 17, 2015
    Posts:
    257
    Godot barely supports it.
     
  7. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    1,294
    KuroRose likes this.
  8. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    2,867
    Java was never part of any Unity solutions. UnityScript was which was a Javascript derivative.

    BTW
    https://wiki.python.org/moin/PythonGames

    Oh and just for fun: Civilization IV was built in C++ and Python and it could be modded in Python AFAIK.
     
  9. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    3,131
    One of the benefits of Unity3D is the massive developer base. If you have a problem or a question, it is almost 100% certain that someone else has already fixed it, or at least identified a workaround.

    You can run Python in Unity in a bunch of different ways, but understand that if you do that, you will:

    a) cut yourself off from easy access to example C# scripts and constructs that do useful things that save you massive amounts of fiddle-around time

    b) be using something that virtually nobody else has used in the Unity context, leaving you to solve most of your problems yourself.

    c) be exposing yourself to a brand-new class of problems related to which platform supports whatever Python implementation you suggest.

    If you're just starting out, keep it simple. Code in C#. It's not hard to learn, there's PLENTY of help out there, and right here for specific Unity context questions.
     
  10. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    4,395
    Don't

    Not surprising

    Not for python in Unity
     
    Kurt-Dekker likes this.
  11. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    267
    Anything all the users above said. Anyway, check out Iron Python.
     
  12. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    4,941
    MNNoxMortem likes this.