Inheritance: ScriptableObject, ISerializationCallbackReceiver
Ejemplo n.º 1
0
		void InvalidateCache()
		{
			if(m_SpriteMeshCache)
			{
				DestroyImmediate(m_SpriteMeshCache);
			}
			
			m_SpriteMeshCache = ScriptableObject.CreateInstance<SpriteMeshCache>();
			m_SpriteMeshCache.hideFlags = HideFlags.DontSave;
		}