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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

Sprite Atlas Unable to add packables in Unity2017 beta via scripting

Discussion in '2D Experimental Preview' started by jsheets, Jun 6, 2017.

  1. jsheets


    May 31, 2017
    In the 2D Experimental Release 2 thread, there is a script available that allows users to add packable objects to the SpriteAtlas:

    Code (CSharp):
    1. SpriteAtlas.AddPackableObjects(Object[] packables)
    I'm currently experimenting with Unity2017.1.b07 beta and attempting to modify a SpriteAtlas via scripting in order to efficiently upgrade my old UI system to use the new 2D feature. However, there are currently no functions available to modify the SpriteAtlas packables.

    Is there any timeline for when the updated SpriteAtlas API that was showcased in the Experiemental Release thread will be available in the public Unity2017 beta? In the interest of not using 3rd party plugins, would it be wiser to instead utilize the SpritePacker if modifying sprite atlases via editor scripts is currently a high priority for me?