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

Selection GetFiltered and sliced sprites

Discussion in 'Scripting' started by Matt1988, Sep 23, 2015.

  1. Matt1988

    Matt1988

    Joined:
    Sep 14, 2012
    Posts:
    23
    Selection.GetFiltered doesn't seem to be working with sliced sprites with SelectionMode.Assets or SelectionMode.DeepAssets.

    Heres my code:
    Code (csharp):
    1.  
    2. Selection.GetFiltered(typeof(Sprite), SelectionMode.Assets)
    3.  
    this doesn't return anything when the sprite in question is a sliced sprite
     
  2. Matt1988

    Matt1988

    Joined:
    Sep 14, 2012
    Posts:
    23
    Is anybody else getting this issue? Is it a bug or am I doing something wrong?