This version of Unity is unsupported.

Path.GetExtension(string)

Description

Returns the extension component of the specified path string.

The extension returned includes the . character used to separate the extension from the rest of the path.