示例#1
0
        public void DrawAxis(Vector3 position)
        {
            AxisRenderer myAxis = GetComponent <AxisRenderer>();

            myAxis.Material = Onyx3D.Resources.GetMaterial(BuiltInMaterial.UnlitVertexColor);
            mRenderers.Add(myAxis);

            myAxis.Transform.LocalPosition = position;
        }
示例#2
0
        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);
        }