我无法引用来自Boo脚本的Unity项目中的其他脚本。例如,SendMessage是我在别处创建的Monobehavior,这样做:

import UnityEngine

class MissionIcon (SendMessage): 

    def Start ():
        pass

    def Update ():
        pass
.

抛出“名称SendMessage不表示有效类型(未找到)。 添加

import SendMessage
.

抛出“找不到命名空间sendmessage”,添加

import SendMessage from Scripts.GUI.menus
.

(我的脚本属于资产/脚本/ gui / menus)抱怨这不是一个程序集,并添加

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top