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. Dismiss Notice

Source code for the Tile System?

Discussion in 'Scripting' started by SuperCrow2, Aug 24, 2021.

  1. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    Does Unity have that anywhere?

    Knowing how they did the following will be nice:

    "paint a filled box with active brush"

    "paint with active brush"
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    Isn't the tile system a package that you download through the package manager? If so I believe all the source would be right there...
     
  3. DevGulpi

    DevGulpi

    Joined:
    Aug 6, 2021
    Posts:
    17
  4. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584
    does Unity release all the source code for their engine?

    I thought you get the tile system by default once you update your version to the one that has it.
     
  5. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,380
    I believe kurt is referring to packages, and not the core unity functionality.

    In regards to the core functionality, Unity does publish the C# side of things to github:
    https://github.com/Unity-Technologies/UnityCsReference

    But they do not publish the internal C++ side of things.
     
  6. SuperCrow2

    SuperCrow2

    Joined:
    Mar 8, 2018
    Posts:
    584

    if I can find the code for it (in the OP) it would be great. I cant seem to find any tutorials with how to do it.
     
  7. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,319
    You might be looking for 2D Extras https://github.com/Unity-Technologies/2d-extras

    It contains examples with code for brushes and tiles.

    There's also the package for the same stuff.

    The source for the engine, however, is proprietary and would require a very expensive source license.