Esempio n. 1
0
		// If enabled, show only the edit node's geometry.
		private void UpdateShowOnlyEditGeometry()
		{
			if (_asset != null && _toolsInfoSerializedObject != null)
			{
				SerializedProperty showProperty = HEU_EditorUtility.GetSerializedProperty(_toolsInfoSerializedObject, "_showOnlyEditGeometry");
				if(showProperty != null)
				{
					if(showProperty.boolValue)
					{
						if (_selectedAttributesStore != null)
						{
							// Hide the asset geo and its colliders
							_asset.HideAllGeometry();
							_asset.DisableAllColliders();
						}
					}
					else
					{
						// Show asset geo based on its internal state
						_asset.CalculateVisibility();
						_asset.CalculateColliderState();
					}
				}
			}
		}