How can I search for a gameObject by Text component's text - unity3d

I took over some Unity project on my job. It was made by another company and I don't have any information for this project.
They made so many popup on the scene ( 180 over popups ) and popup's name is cannot be identified (ex. popup1, popup2, popup...)
So I cannot find the popup I want. I just know about popup's contents (message and title)
The popup is a Game Object's node and it's on the Hierarchy Tab. Almost popups consists of background (color), Title (text), Contents (text), Button (text).
How can I search for the popup I want? (just use popup's text (title, message))
Visual Studio (search all at Solution) cannot find this and I'd open a Scene.unity file to notepad, and I search popup's text, but it cannot find it!

Visual Studio (search all at Solution) cannot find this and I'd open a Scene.unity file to notepad, and I search popup's text, but it cannot find it!
This would suggest the popup text is in .prefab files. You can search those too.
Otherwise, author an editor script that enumerates through the Selection.activeSelection components using GetComponentsInChildren<Text>().

Related

Can I write a vscode extension to open a file (from explorer panel) directly in webview?

The behavior I want is that when I click on a file (of certain extension) in the explorer panel, instead of opening a text editor, a webview shows up. An example would be that when I open a .md file, instead of showing the markdown text, a custom made WYSIWYG markdown editor (webview) is shown directly.
I managed to open the webview via command and I even hooked it up to the onDidChangeActiveTextEditor and onDidOpenTextDocument events so that whenever a text editor is opened or focused, the corresponding webView is opened and focused immediately.
This almost does what I want, with two issues. One is that the text editor still shows up for a moment. Second, and more problematic, the webview does not sync with the explorer panel as well as the text editor does. For instance, when a text editor is focused, the corresponding file is selected in the explorer panel. The webview doesn't do that.
Is there a way to make the webview the default and primary editor for a type of document?
This is not possible as of VS Code 1.30. These issue are tracking something similar: https://github.com/Microsoft/vscode/issues/12176 and https://github.com/Microsoft/vscode/issues/22068

How to use github icon set on fontello

Fontello has an area where you can drag custom fonts onto.
GitHub style page here shows they have a custom font I want to use on that fontello can someone please help me to import it.
Yeah I love the GitHub icon font "Octicons" too. Unfortunately as far as I know they're assumed to not freely available to the public - see here: https://github.com/FortAwesome/Font-Awesome/issues/191#issuecomment-6180040
That said - I just did some source file snooping and grabbed the TTF and other files here if you wanna try this on fontello? https://dl.dropboxusercontent.com/u/7951258/fonts/octicons-from-github.com_20140302.zip
PS: If you do find a way to get a hold of them legitamitely please post an update though!
Go to GitHub Style page HERE
Open the inspector Ctrl + Shift + C
Click on Fonts
Click on "See all fonts used in this page"
Find octicons section
Highlight and copy (with Ctrl+C, cant right click here) that box below >Used as: "octicons"
Open notepad and paste it there.
Find the format(svg) and copy it
Go back to firefox, type in http://github.com/ and then paste the string you copied so now in URL bar it says https://github.com//assets/octicons-cdc456dbc5906e59b8c4d1c649a4b734fb0fd97b.svg#octicons
Hit enter and now right click in the page after it loads and go view source
Save this source to your drive
Now go to Fontello tab and then drag the downloaded file into the area on Fontello site where it says "Drag custom SVG icons or SVG font here" on fontello
DONE. Wait and magically all the github icons are now available to you!! Its grouped as "Custom Icons"
Super cool!!

Is there a shortcut for color chooser in NetBeans?

Is there a shortcut for color chooser in NetBeans?
I found this same query on NetBeans website, it was said that this was possible but I can't find an actual answer how to do it.
I mean this: when I am in a CSS file and I am editing a property that involves a color, the color chooser pops up automatically. I would like to have the color chooser pop up on demand when I am editing any file (e.g. a PHP file). It would be very helpful.
I already looked in Options -> Keymap and there seems to be no shortcut containing the word "color".
Thanks.
In the editor, click the text representing the color (you don't even have to highlight the whole thing), then hit Ctrl+Spacebar.
While it's not ideal in Netbeans 8.0.2 you can do the following:
open any CSS file that contains a rule with a property that takes colour as value and place the cursor inside the declaration block of that rule,
in the top menu click on Window -> Web -> CSS Styles,
click on the dropdown with colour values and scroll right to the top,
click on Choose Color and a colour chooser will appear.
You can now close the CSS file (if you like) and open any type of file - the CSS Styles window will stay and you can repeat the above procedure starting from step 3.
P.S. Netbeans has a bug tracker that is not just for reporting bugs:
Issues = Bugs, Feature Requests, and Enhancements

TinyMce plugin, how to copy 'Link' functionality

I'm creating a new plugin for TinyMce. However I cannot find any examples to see some of the functionality I've seen in other plugins. I've read their source code but I cannot find where it is done:
When you click on an 'A' element, the link/unlink buttons in the taskbar become enabled.
When you right click on an 'A' element, then click on the "Insert/edit link" icon that is shown in the popup menu, the "Insert/edit link" window is setup (has all the attributes for that particular link) prefilled.
Could you suggest somewhere where I could learn how to do this? A file and line number is fine.
Thanks in advance.
Here a part of what you want. To highlight a UI button (link) you may do
tinymce.get(editorid).contentManager.setActive('link', true);
EDIT: For the other functionality have a look at editor_plugin_src.js/editor_plugin.js in the directory tiny_mce\plugins\advlink\. It is only small in size. You will find that a file called link.htm is being called to form the popup. Hope this helps.

Eclipse code template to insert a bookmark?

Eclipse has a nifty feature which allows you to define "templates" for code. I have created one to automatically put in a println and add a "TODO" comment. I'd like for this to also add a bookmark so I can easily find it again.
(The codebase I am working with makes it unfeasible to use just the Task List to find what I need to do since there are a lot of TODOs laying around.)
My current template is simply System.out.println("don't commit me!"); //TODO: fix this ${cursor}.
A bookmark is part of the editor.
You can find all of your TODO comments in the Eclipse Tasks view. If the Tasks view isn't open, just left click on Window -> Show View -> Tasks (not Task List).
If you left click on the Tasks description to make sure the Tasks view has focus, then double click on the Tasks description, Eclipse will open the editor and take you to the TODO line.
If you have the code already open in the Eclipse editor, Eclipse draws blue rectangles on the right side of the editor to mark all of the TODO comments. Left clicking on the blue rectangles will take you to the TODO comment line.
Edited to add: You can sort the Tasks view by clicking on any of the titles, like Resource.
I don't think it's possible via a code template.
It's certainly possible with the a key shortcut that can be assigned to add bookmark in:
Window->Preferences->Keys
but you still have the prompt to enter the name of the bookmark (rather than use a default set of text).
If you really want to get close to the functionality you want you could take a look at the Eclipse Bookmarks plugin:
http://www.etc.to/eclipse_bookmarks_plugin
and maybe hack it to do what you want... (if it doesn't already)...