2D Toolkit Forum

2D Toolkit => Support => Topic started by: rc183 on June 30, 2014, 08:02:29 pm

Title: Show all the gameobjects that use a specified sprite
Post by: rc183 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
Title: Re: Show all the gameobjects that use a specified sprite
Post by: unikronsoftware 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...