- Home /
Question by
LinkDot · Dec 05, 2014 at 11:45 AM ·
editoreditor-scripting
Working in SceneView
how to update my script in editmode?
I tried [ExecuteInEditMode] and put my code in the UPDATE function but it takes a while to update. I need to click to the project window before it updates...
[ExecuteInEditMode]
public Vector2 myPoints
void Update {
myPoints = myEdgeCollider.points;
}
I add another point in my edge collider in sceneview but it does not automatically add points to mypoints.
Comment
Your answer
Follow this Question
Related Questions
How to change a selection effect in editor 0 Answers
Create inspector drop-down button based on the content of a list in editor mode 1 Answer
Mark gameobject field as changed from prefab 2 Answers
Custom Inspector: Accessing a reference to another MonoBehaviour? 1 Answer
Unity inspector scripting - scriptable objects - card game 0 Answers