コード例 #1
0
		public override IEnumerable<Object> FetchDependencies(ISerializedFile file, bool isLog = false)
		{
			foreach(Object @object in base.FetchDependencies(file, isLog))
			{
				yield return @object;
			}
			
			yield return Mesh.FetchDependency(file, isLog, ToLogString, "m_Mesh");
			if (IsReadMeshes(file.Version))
			{
				yield return Mesh1.FetchDependency(file, isLog, ToLogString, "m_Mesh1");
				yield return Mesh2.FetchDependency(file, isLog, ToLogString, "m_Mesh2");
				yield return Mesh3.FetchDependency(file, isLog, ToLogString, "m_Mesh3");
			}
		}
コード例 #2
0
        public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false)
        {
            foreach (Object asset in base.FetchDependencies(file, isLog))
            {
                yield return(asset);
            }

            yield return(Mesh.FetchDependency(file, isLog, ToLogString, MeshName));

            if (IsReadMeshes(file.Version))
            {
                yield return(Mesh1.FetchDependency(file, isLog, ToLogString, Mesh1Name));

                yield return(Mesh2.FetchDependency(file, isLog, ToLogString, Mesh2Name));

                yield return(Mesh3.FetchDependency(file, isLog, ToLogString, Mesh3Name));
            }
        }