- Home /
EditorScripting in Javascript
Hey,
I tried to reearch on this problem but i couldn't find enough information. Maybe it's because I'm new to this topic and I don't know which keyword to use for the search.
I have programmed a small game and now it comes to creating the levels. So i was thinking about how to get like a leve-editor for making it easier to set up new levels. Somehow i heard about "Editor-Scripting" so that's now what i want to try! But i don't know anything about how it works so I was looking for some tutorials. But i couldn't find a tutorial written in Javascript which would be better than C# since I use JS as well for anything else.
First I want to start with a very simple Editor Script. When activated, I want to increase or decrease (left and right click) a cube's y-value by 1. So actually pritty simple, actually just some input, raycasting and collision. It's no problem for me to make something like this for a game but I want to make such a script for the editor!
Does anybody know some good tutorials on editor-scripting in JS or can someone give me a quick example (if it's not too much) for a script that makes like raycasting on left-click and changes the object's position? I think that could help me alo a lot since I can then easily work on that and extend it.
Thanks, Tayfe
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
ray cast not working ? 2 Answers
Importing A*Pathfinding plugin issue 1 Answer
Problems with creating custom EditorGUI for script 0 Answers