Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Call JavaScript function from C# in Unity3D

    • 0
    • 2
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 2.05k
    Comment on it

    Call JavaScript function from C# in Unity3D

    Mostly developer use a particular language to do code in Unity3D. But some times you need to use two types of Scripts. At same point you also may required to call vise a versa functions of both scripts. Which is little tricky to call.

    GameObject.FindgameObjectWithtag("MainCamera").GetComponent("OtherScript").SendMessage("Test");
    

    You can drop this "OtherScript" to main camera.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: