Hello Guest

Author Topic: Show all the gameobjects that use a specified sprite  (Read 3303 times)

rc183

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Show all the gameobjects that use a specified sprite
« on: June 30, 2014, 08:02:29 pm »
Hi all,

Do you know if there is a way with 2d toolkit to show all the gameobjects that use a specified sprite ?

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Show all the gameobjects that use a specified sprite
« Reply #1 on: July 01, 2014, 10:17:55 am »
No, but you should write an editor script to do that. You can get all sprites using Object.FindObjectsOfType(typeof(tk2dSprite)) to find all sprites, then compare with the ones you've got and set it to Selection.activeObjects to have it select them all...