- Home /
js to c# conversion
If I convert my scripts from javascript to c sharp will I have to tag. The scripts to the objects??
Answer by clunk47 · Oct 10, 2013 at 07:50 PM
WHAT??? Very unclear question. General infromation:
If you convert JS scripts to CS, you will need to remove the JS script from the object and replace it with the C# script. You will also need to use different script names to avoid the console telling you that the class already exists.
Haha yes I dont know how to ask it.sorry.ok so you can only attach a script to an game object by dragging it onto the game object? Or is there also a way to attach it by using code?
Please post comments as comments, not new answers. If you want to attach a script to a GameObject via code, look into AddComponent.
gameObject.AddComponent<YourScriptNameHere>();
Your answer
Follow this Question
Related Questions
Help with conversion from javascript to c# 3 Answers
Trying to convert a JC script to C # 2 Answers
Help...convert C# to Js ??? 3 Answers
java to C# conversion 1 Answer