如何打开另一个脚本中提到的脚本? (快捷方式是我正在寻找的) [英] How do I open a script, mentioned within another script? (Shortcut Is what I'm looking for)

查看:96
本文介绍了如何打开另一个脚本中提到的脚本? (快捷方式是我正在寻找的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

 我有"脚本A" ,其中包含一行C#代码(例如):   goGameControllerBonusRB.GetComponent< GameControllerBonus>()。endOfPuzzle();  



这是调用公共方法"endOfPuzzle()"。这很好。 

 I have "Script A" , which contains a line of C# code (for example):  goGameControllerBonusRB.GetComponent<GameControllerBonus>().endOfPuzzle();  

This is calling the public method "endOfPuzzle()". This works fine. 

 我想轻松/快速打开" goGameControllerBonusRB" 。脚本&NBSP;  我可以通过右键单击代码中的脚本名称并从提供的众多选项中选择一些内容来实现此目的吗? 我想避免手动
打开并搜索goGameControlerBonusRB脚本。

 

 我已经搜索了这样做的方法,但是感觉我用错误的搜索词来描述我想做的事情,上面。 

 I want to easily/quickly open " goGameControllerBonusRB " script.   Can I do this by right clicking the name of the script in the code and choosing something from the plethora of options presented?  I want to avoid manually having to open and search for the goGameControlerBonusRB script.
 
 I've searched for ways to do this, but have a feeling I'm using the wrong search terms to describe what I want to do, above. 

 感谢您提供的任何输入!

 Thanks for any input you can provide!

推荐答案

如果你将插入符号放在
goGameControllerBonusRB GetComponent 中,然后按< F12>?

What happens if you put the caret inside goGameControllerBonusRB or GetComponent, then press <F12>?


这篇关于如何打开另一个脚本中提到的脚本? (快捷方式是我正在寻找的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆