【Unity3D】winform嵌套,替换logo

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--;  
        }  
    }

 

posted @ 2017-06-19 14:39  oiliu  阅读(752)  评论(0编辑  收藏  举报