HidePaintMesh() public method

public HidePaintMesh ( ) : void
return void
Example #1
0
		private void PaintingFinished(SerializedProperty isPaintingProperty)
		{
			if (isPaintingProperty != null && isPaintingProperty.boolValue)
			{
				isPaintingProperty.boolValue = false;
				_GUIChanged = true;

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

				// Show asset geometry once done painting
				_asset.CalculateVisibility();
			}
		}
Example #2
0
	// Show all geometry for the asset.
	private void ShowAssetGeometry()
	{
	    // This comes before the individual updates below since its for the whole asset
	    if (_asset != null)
	    {
		_asset.CalculateVisibility();
	    }

	    if (_selectedAttributesStore != null)
	    {
		if (_interactionMode == ToolInteractionMode.PAINT)
		{
		    UpdatePaintMeshVisibility();
		}
		else
		{
		    _selectedAttributesStore.HidePaintMesh();
		}

		_selectedAttributesStore.DisablePaintCollider();
	    }
	}