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", "");