首页 > 编程语言 > 详细

【Unity3D】winform嵌套,替换logo

时间:2017-06-19 15:03:10      阅读:253      评论:0      收藏:0      [点我收藏+]

http://blog.csdn.net/xxdddail/article/details/49890643

1、_axUnityWebPlayer_OnExternalCall

void _axUnityWebPlayer_OnExternalCall(object sender, AxUnityWebPlayerAXLib._DUnityWebPlayerAXEvents_OnExternalCallEvent e)  
        {  
            if (e.value.StartsWith("LOAD_COMPLETE"))  
            {  
                if (!_axUnityWebPlayer.Visible)  
                {  
                    _axUnityWebPlayer.Width = this.Width;  
                    _axUnityWebPlayer.Height = this.Height;  
                    _axUnityWebPlayer.Show();  
                    HideProgressBar();  
                }  
            }  
            OnUnityCall(sender, e);  
        }  

2、OnGUI 函数

int _notifyTimeAfterLoadComplete = 3;
    void OnGUI()  
    {    
        if (_notifyTimeAfterLoadComplete>0)  
        {  
            Application.ExternalCall("LOAD_COMPLETE", "");  
            _notifyTimeAfterLoadComplete--;  
        }  
    }

 

【Unity3D】winform嵌套,替换logo

原文:http://www.cnblogs.com/oiliu/p/7048598.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!