unity3d 嵌入 winform程序中 src路径设置问题

AxUnityWebPlayerAXLib.AxUnityWebPlayer _Unity = axUnityWebPlayer1;                         Controls.Add(_Unity);             ((System.ComponentModel.ISupportInitialize)(_Unity)).EndInit();             _Unity.src = System.Environment.CurrentDirectory + "\\Parking lot.unity3d";             AxHost.State state = _Unity.OcxState;             _Unity.Dispose();

            ((System.ComponentModel.ISupportInitialize)(_Unity)).BeginInit();             this.SuspendLayout();             _Unity.OcxState = state;             _Unity.TabIndex = 0;             Controls.Add(_Unity);             ((System.ComponentModel.ISupportInitialize)(_Unity)).EndInit();             this.ResumeLayout(false);

 

控制三维模型运动

axUnityWebPlayer1.SendMessage("Parkinglot", "MStart", "");

posted on 2014-10-22 14:28  连一粝  阅读(684)  评论(0编辑  收藏  举报

导航