public void InjectAllGrabStrengthIndicator(IHandGrabber handGrab, IInteractor interactor, MaterialPropertyBlockEditor handMaterialPropertyBlockEditor) { InjectHandGrab(handGrab); InjectInteractor(interactor); InjectHandMaterialPropertyBlockEditor(handMaterialPropertyBlockEditor); }
private void UpdateMaterialPropertyBlock() { if (_editor == null) { _editor = GetComponent <MaterialPropertyBlockEditor>(); if (_editor == null) { return; } } MaterialPropertyBlock block = _editor.MaterialPropertyBlock; block.SetColor(_colorShaderID, _color); block.SetColor(_borderColorShaderID, _borderColor); block.SetVector(_radiiShaderID, new Vector4( _radiusTopRight, _radiusBottomRight, _radiusTopLeft, _radiusBottomLeft )); block.SetVector(_dimensionsShaderID, new Vector4( transform.localScale.x, transform.localScale.y, _borderInnerRadius, _borderOuterRadius )); _editor.UpdateMaterialPropertyBlock(); }
public void InjectAllControllerRayVisual(RayInteractor rayInteractor, Renderer renderer, MaterialPropertyBlockEditor materialPropertyBlockEditor) { InjectRayInteractor(rayInteractor); InjectRenderer(renderer); InjectMaterialPropertyBlockEditor(materialPropertyBlockEditor); }
public void InjectOptionalMaterialPropertyBlockEditor(MaterialPropertyBlockEditor editor) { _handMaterialPropertyBlockEditor = editor; }
public void InjectMaterialPropertyBlockEditor(MaterialPropertyBlockEditor editor) { _materialPropertyBlockEditor = editor; }
public void InjectAllDotGridProperties(MaterialPropertyBlockEditor editor) { InjectMaterialPropertyBlockEditor(editor); }
public void InjectAllInteractableColorVisual(IInteractableView interactableView, MaterialPropertyBlockEditor editor) { InjectInteractableView(interactableView); InjectMaterialPropertyBlockEditor(editor); }
public void InjectHandMaterialPropertyBlockEditor(MaterialPropertyBlockEditor handMaterialPropertyBlockEditor) { _handMaterialPropertyBlockEditor = handMaterialPropertyBlockEditor; }