but nothing happening on the screen . AM i doing something wrong ?
These arrow should change in length followed by sets of equations . Please help me . Some one told me before to use primitives , i couldn’t make out . Please SOS !
It is same as before after adding above line .
I am also trying to add this script in my project
/ Draw one Arrow on each axis of any GameObject
// that has the “DummyArrowCapScript.js” script attached.
@CustomEditor (DummyArrowCapScript)
class ArrowCap extends Editor {
var arrowSize : float = 1;
function OnSceneGUI () {
Handles.color = Color.red;
Handles.ArrowCap(0,
target.transform.position + Vector3(5,0,0),
target.transform.rotation,
arrowSize);
Handles.color = Color.green;
Handles.ArrowCap(0,
target.transform.position + Vector3(0,5,0),
target.transform.rotation,
arrowSize);
Handles.color = Color.blue;
Handles.ArrowCap(0,
target.transform.position + Vector3(0,0,5),
target.transform.rotation,
arrowSize);
}
}
And the script attached to this Handle:
Debug.Log(“I have ArrowCap Handles attached to this transform!”);
But it says “target” is unknown . I don’t know what is wrong i am doing . Please help me if you also have any other idea than this. All i need those arrows in my game . How can i get those arrows in my game ?. If you can post any script it will be appreciated.