public void SyncLoadMatsTex(List <PrefabRenderHolder.RenderMatTexPair> rendersMatTexInfo, List <Asset> texResRefs)
    {
        if (rendersMatTexInfo == null)
        {
            return;
        }
        int len = rendersMatTexInfo.Count;

        for (int i = 0; i < len; i++)
        {
            if (rendersMatTexInfo[i].renderObj == null)
            {
                continue;
            }
            var renderMatInfos = rendersMatTexInfo[i].matAllInfos;
            if (renderMatInfos != null)
            {
                if (renderMatInfos.Length == 1)
                {
                    var matTexInfos = renderMatInfos[0].matTexInfos;
                    for (int m = 0; m < matTexInfos.Length; m++)
                    {
                        var          mat     = rendersMatTexInfo[i].renderObj.sharedMaterial;
                        var          attName = matTexInfos[m].attribute;
                        TextureAsset res     = (TextureAsset)TextureAssetManager.Singleton.Load(matTexInfos[m].tex2dName);
                        var          tex     = res.GetMainAsset() as Texture;
                        if (tex != null)
                        {
                            mat.SetTexture(attName, tex);
                            res.AddRef();
                            //记录加载了哪些贴图
                            texResRefs.Add(res);
                        }
                    }
                }
                else
                {
                    var mats = rendersMatTexInfo[i].renderObj.sharedMaterials;
                    for (int j = 0; j < renderMatInfos.Length; j++)
                    {
                        if (mats.Length > renderMatInfos[j].matIndex && mats[j] != null)
                        {
                            var mtis = renderMatInfos[j].matTexInfos;
                            for (int n = 0; n < mtis.Length; n++)
                            {
                                var          mat     = mats[renderMatInfos[j].matIndex];
                                var          attName = mtis[n].attribute;
                                TextureAsset res     = (TextureAsset)TextureAssetManager.Singleton.Load(mtis[n].tex2dName);
                                mat.SetTexture(attName, res.GetMainAsset() as Texture);
                                res.AddRef();
                                //记录加载了哪些贴图
                                texResRefs.Add(res);
                            }
                        }
                    }
                    rendersMatTexInfo[i].renderObj.sharedMaterials = mats;
                }
            }
        }
    }