x


References of objects/classes in scenes NOT open in the scene view

I need to be able to find object and class references in scenes that aren't open in the scene view. I know that in 3.5 scenes are text based, but I'm wondering if anyone knows of a search tool / utility that already does this or how it can be done currently?

I have the ability to right click on a class and choose "Find references in scene", which looks in the currently opened scene, or even use "select dependencies" on items in the project view. I've even tried copying the search string that "Find references in scene" creates and used that in the project search bar - this doesn't work unfortunately.

But what I'm after is the ability to right click or select a class and "find references in all objects in project including unopened scenes".

This would be massively helpful :) We have 70 scenes currently, you can imagine the hassle while doing localization.

more ▼

asked Apr 06 '12 at 04:43 PM

neoRiley gravatar image

neoRiley
124 3 4 11

We have 70 scenes currently, you can imagine the hassle while doing localization

You should think of an automatic system for localization, not involving changing by hand all your scripts/objects.

By the way scene are not text-based if you don't have PRO or if the settings for asset serialization is on 'Binary' or 'Mixed'.

Apr 06 '12 at 05:06 PM Kryptos

yes, we wrote the localization library after the app was written unfortunately for me. I have to go through now and retro fit :(

Apr 06 '12 at 05:31 PM neoRiley
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can write an EditorWindow script and use the editor utilities to open/close each scene one after another and list all found objects in this window.

Read the documentation.

http://unity3d.com/support/documentation/ScriptReference/EditorWindow.html

http://unity3d.com/support/documentation/ScriptReference/AssetDatabase.html

http://unity3d.com/support/documentation/ScriptReference/EditorUtility.html

http://unity3d.com/support/documentation/ScriptReference/EditorApplication.html

Particularly EditorApplication.OpenScene() will be useful.

more ▼

answered Apr 06 '12 at 05:10 PM

Kryptos gravatar image

Kryptos
7.2k 5 32

yeah, i was close to getting started on doing this, I just wanted to find out if there was (1) already a tool out there that did this work already (2) there was already a way in the editor to do this.

Sounds like there's not ;)

Apr 06 '12 at 05:33 PM neoRiley
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x264
x44
x14

asked: Apr 06 '12 at 04:43 PM

Seen: 677 times

Last Updated: Apr 06 '12 at 05:33 PM