public void DrawAxis(Vector3 position) { AxisRenderer myAxis = GetComponent <AxisRenderer>(); myAxis.Material = Onyx3D.Resources.GetMaterial(BuiltInMaterial.UnlitVertexColor); mRenderers.Add(myAxis); myAxis.Transform.LocalPosition = position; }
public Axis(string id, ResourcesManager content, Scene scene = null) : base(id, scene) { AxisRenderer axisRenderer = this.AddComponent <AxisRenderer>(); axisRenderer.Material = Onyx3DEngine.Instance.Resources.GetMaterial(BuiltInMaterial.UnlitVertexColor); }