国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

UnityWebPlayer打開文件

2019-11-08 03:25:43
字體:
來源:轉載
供稿:網友
/// <summary>/// 加載資源文件(格式為*.unity3d)./// </summary>/// <param name="src">The source.</param>public void OpenFile(string src){ try { if (string.IsNullOrWhiteSpace(src)) return; if (!File.Exists(src)) return; if (this.unityPlayer != null) { this.unityPlayer.Dispose(); this.unityPlayer = null; } this.unityPlayer = new AxUnityWebPlayerAXLib.AxUnityWebPlayer(); ((System.ComponentModel.ISupportInitialize)(this.unityPlayer)).BeginInit(); this.Controls.Add(this.unityPlayer); ((System.ComponentModel.ISupportInitialize)(this.unityPlayer)).EndInit(); this.unityPlayer.src = src; AxHost.State state = this.unityPlayer.OcxState; this.unityPlayer.Dispose(); this.unityPlayer = new AxUnityWebPlayerAXLib.AxUnityWebPlayer(); ((System.ComponentModel.ISupportInitialize)(this.unityPlayer)).BeginInit(); this.SuspendLayout(); this.unityPlayer.Dock = DockStyle.Fill; this.unityPlayer.Name = "viewControl1"; this.unityPlayer.OcxState = state; this.unityPlayer.TabIndex = 0; this.unityPlayer.OnExternalCall += Unity_OnExternalCall; this.panel1.Controls.Clear(); this.panel1.Controls.Add(this.unityPlayer); this.panel1.Controls.Add(this.m_logo); this.m_logo.BringToFront(); ((System.ComponentModel.ISupportInitialize)(this.unityPlayer)).EndInit(); this.ResumeLayout(false); } catch (Exception err) { Debug.WriteLine(err.ToString()); }}
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 连江县| 盘山县| 龙南县| 崇仁县| 富顺县| 贡觉县| 屏边| 临邑县| 孝昌县| 孟连| 宜丰县| 哈巴河县| 宣武区| 宁武县| 玉龙| 金乡县| 尼玛县| 沾化县| 大荔县| 吉水县| 临桂县| 齐齐哈尔市| 普兰店市| 河津市| 拜城县| 平湖市| 兴安县| 民县| 焦作市| 周至县| 张家川| 四平市| 平陆县| 铜梁县| 田阳县| 利津县| 盐源县| 滦平县| 鹤壁市| 柳江县| 乐陵市|