/// <summary> /// Returns whether this SpriteSkin has currently deformed vertices. /// </summary> /// <returns>Returns true if this SpriteSkin has currently deformed vertices. Returns false otherwise.</returns> public bool HasCurrentDeformedVertices() { if (!m_IsValid) { return(false); } #if ENABLE_SPRITESKIN_COMPOSITE return(m_DataIndex >= 0); #else return(m_CurrentDeformVerticesLength > 0 && m_DeformedVertices.GetCurrentBuffer().IsCreated); #endif }
/// <summary> /// Returns whether this SpriteSkin has currently deformed vertices. /// </summary> /// <returns>Returns true if this SpriteSkin has currently deformed vertices. Returns false otherwise.</returns> public bool HasCurrentDeformedVertices() { if (!m_IsValid) { return(false); } #if ENABLE_SPRITESKIN_COMPOSITE return(m_DataIndex >= 0 && SpriteSkinComposite.instance.HasDeformableBufferForSprite(m_DataIndex)); #else return(m_CurrentDeformVerticesLength > 0 && m_DeformedVertices.GetCurrentBuffer().IsCreated); #endif }