public static DestroyNonAssetMaterial ( Material material, bool bRegisterUndo ) : void | ||
material | Material | |
bRegisterUndo | bool | |
return | void |
private void ClearCache() { if (_toolsInfoSerializedObject != null) { SerializedProperty isPaintingProperty = HEU_EditorUtility.GetSerializedProperty(_toolsInfoSerializedObject, "_isPainting"); PaintingFinished(isPaintingProperty); } _selectedAttributesStore = null; _selectedAttributeData = null; _attributesStores.Clear(); _serializedAttributesStoresCache.Clear(); if(_editPointBoxMaterial != null) { HEU_MaterialFactory.DestroyNonAssetMaterial(_editPointBoxMaterial, false); _editPointBoxMaterial = null; } DestroyEditPointBoxMesh(); _dragMouseDown = false; _asset = null; _toolsInfo = null; }
// LOGIC ----------------------------------------------------------------------------------------------------- public void DestroyAllData(HEU_HoudiniAsset asset) { _attributeDatas.Clear(); _positionAttributeValues = null; _vertexIndices = null; if (_localMaterial != null) { HEU_MaterialFactory.DestroyNonAssetMaterial(_localMaterial, false); _localMaterial = null; } _outputGameObject = null; _outputMaterials = null; _localMeshCollider = null; _outputMeshCollider = null; _outputColliderMesh = null; _outputMesh = null; }