Пример #1
0
        public async void Initialize()
        {
            GizmoDrawer.Init();

            var shader = await _assetLoader.LoadAsset <Shader>("sh_sfglow_doublesided.shader");

            _gizmoMaterial = new Material(shader);

            PositionMesh = await LoadMesh("PositionGizmo");

            RotationMesh = await LoadMesh("RotationGizmo");

            ScalingMesh = await LoadMesh("ScalingGizmo");

            PositionGizmo.PositionMesh = PositionMesh;
            RotationGizmo.RotationMesh = RotationMesh;
            ScaleGizmo.ScalingMesh     = ScalingMesh;

            GizmoDrawer.Init();
        }
Пример #2
0
 public void Deactivate()
 {
     GizmoDrawer.Deactivate();
 }
Пример #3
0
 public void Activate()
 {
     GizmoDrawer.Activate(_gizmoMaterial);
 }