Boo 스크립트에서 다른 스크립트 가져 오기
문제
BOO 스크립트에서 Unity Project에서 다른 스크립트를 참조하는 데 문제가 있습니다.예를 들어 SendMessage는 내가 다른 곳에서 만든 Monobehavior입니다.
import UnityEngine
class MissionIcon (SendMessage):
def Start ():
pass
def Update ():
pass
.
이름은 "SendMessage는 유효한 유형 (발견되지 않음)을 나타내지 않습니다. 를 추가합니다
import SendMessage
.
는 "namespace sendmessage를 찾을 수 없음"을 던졌습니다.
import SendMessage from Scripts.GUI.menus
.
(내 스크립트는 자산 / 스크립트 / GUI / 메뉴가 있음) 조립이 아니며 을 추가한다고 불평합니다.
import SendMessage from "Scripts/GUI/menus"
.
는 똑같은 것을 말합니다.그래서 .. 어떻게해야합니까?의 총 N00B에 대해 죄송합니다.
해결책
I think, you have to import script as any other unity asset. Look at http://unity3d.com/support/documentation/Manual/Asset%20Import%20and%20Creation.html
다른 팁
AFAIK boo can't import script files.
You should import required namespace and add referenced file to booc.
Something like:
booc.exe file1.boo file2.boo
제휴하지 않습니다 StackOverflow