ShowPaintMesh() public method

public ShowPaintMesh ( ) : void
return void
Ejemplo n.º 1
0
	private void UpdatePaintMeshVisibility()
	{
	    switch(_toolsInfo._paintMeshVisiblity)
	    {
		case HEU_ToolsInfo.PaintMeshVisibility.AUTO:
		{
		    if (_selectedAttributesStore != null)
		    {
			if (_isPainting)
			{
			    _selectedAttributesStore.ShowPaintMesh();
			}
			else
			{
			    _selectedAttributesStore.HidePaintMesh();
			}
		    }
		    break;
		}
		case HEU_ToolsInfo.PaintMeshVisibility.SHOW:
		{
		    if (_selectedAttributesStore != null)
		    {
			_selectedAttributesStore.ShowPaintMesh();
		    }

		    break;
		}
		case HEU_ToolsInfo.PaintMeshVisibility.HIDE:
		{
		    if (_selectedAttributesStore != null)
		    {
			_selectedAttributesStore.HidePaintMesh();
		    }

		    break;
		}
		default:
		{
		    break;
		}
	    }
	}
Ejemplo n.º 2
0
		private void PaintingStarted(SerializedProperty isPaintingProperty)
		{
			if (isPaintingProperty != null && !isPaintingProperty.boolValue)
			{
				isPaintingProperty.boolValue = true;
				_GUIChanged = true;

				// Hide asset geometry in order to show the paint object
				_asset.HideAllGeometry();

				if (_selectedAttributesStore != null)
				{
					_selectedAttributesStore.ShowPaintMesh();
				}
			}
		}