Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How to load unity3d application in unity web player using c# .net?

when i write path in directly src property so its running but when i write path through c# code its not running.

How it can i resolve this issue.

I want to load object on click event in UnityWebPlayer.
Please help me.

Thanks in AAdvance.

Ankit Agarwal
Software Engineer

What I have tried:

C#
private void button1_Click(object sender, EventArgs e)
{
      axUnityWebPlayer1.src = @"D:\CarExe\BMW Webplayer\BMW Webplayer.unity3d";
}
Posted
Updated 4-May-16 21:00pm
v2

1 solution

Did you check the documentation?
Unity - Manual: HTML code to load Unity content[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900