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

Bug Tile palette pan won't go beyond a certain point

Discussion in '2D' started by gwelkind, Sep 1, 2022.

  1. gwelkind

    gwelkind

    Joined:
    Sep 16, 2015
    Posts:
    65
    The palette won't reach beyond a very limited region when zooming and panning. Why not allow the viewer to look as far as they want to ? I have a big palette and can't reach the ends

    Using Unity 2021.3.6f1
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Hi, the panning limits should be larger than the extents of your Tile Palette with a little buffer.

    Would it be possible to share the configuration of your Tile Palette (how large the Sprites are relative to the Cells) and what it looks like when it reaches the panning limit? Alternatively, you could file a bug report using the Unity Bug Reporter with your Tile Palette project and post the case number here.

    This would help us identify the issue of the panning limits for you. Thanks!
     
  3. gwelkind

    gwelkind

    Joined:
    Sep 16, 2015
    Posts:
    65
    I believe what's happening is that the logic dictating palette bounds isn't paying attention to GameObjects, just sprites.

    To reproduce, use the gameobject brush, go into the palette prefab and paint the gameobject around. Now look at the palette, it won't pan appropriately to find the gameobjects that were brushed into the palette.

    Honestly, even if the default behavior was just to at least pan out to a 80x80 grid, that would be fine.
    Or, if any gameobjects exist in the palette, just don't restrict panning.

    I totally get how it would be complicated to include gameobjects in the bounds calculation, but I feel like for gameobject brush to be minimally usable with the palette, we at least need to be able to access more than a handful of the cells in the grid, and there are some solutions I'd expect to be pretty simple.
     
  4. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Thanks for the reproduction steps! Yes, the limits do not work well if there are only GameObjects in the Palette. We will fix this!