tk2dSlicedSprite.UpdateGeometryImpl C# (CSharp) Method

UpdateGeometryImpl() protected method

protected UpdateGeometryImpl ( ) : void
return void
    protected void UpdateGeometryImpl()
    {
        #if UNITY_EDITOR
        // This can happen with prefabs in the inspector
        if (mesh == null)
            return;
        #endif
        SetGeometry(meshVertices, meshUvs);
        mesh.vertices = meshVertices;
        mesh.uv = meshUvs;
        mesh.RecalculateBounds();

        UpdateCollider();
    }