This version of Unity is unsupported.

Texture.GenerateAllMips

public static int GenerateAllMips;

Description

Can be used with Texture constructors that take a mip count to indicate that all mips should be generated. The value of this field is -1.