public static void SafeCreateTexture(ref Texture2D tex, string textureName)
 {
     if (tex == null)
     {
         tex = (ShaderEffectUtils.GetCodeTexture(textureName) as Texture2D);
     }
 }