Пример #1
0
        /// <inheritdoc/>
        public override EntityInfo GetEntityInfo(UFile localPath, Logger logger)
        {
            var meshConverter = new Importer.FBX.MeshConverter(logger);
            var entityInfo    = meshConverter.ExtractEntity(localPath.FullPath);

            return(entityInfo);
        }
Пример #2
0
        /// <inheritdoc/>
        public override EntityInfo GetEntityInfo(UFile localPath, Logger logger, AssetImporterParameters importParameters)
        {
            var meshConverter = new Importer.FBX.MeshConverter(logger);
            var entityInfo    = meshConverter.ExtractEntity(localPath.FullPath, importParameters.IsTypeSelectedForOutput(typeof(TextureAsset)));

            return(entityInfo);
        }
Пример #3
0
        /// <inheritdoc/>
        public override void GetAnimationDuration(UFile localPath, Logger logger, AssetImporterParameters importParameters, out TimeSpan startTime, out TimeSpan endTime)
        {
            var meshConverter     = new Importer.FBX.MeshConverter(logger);
            var durationInSeconds = meshConverter.GetAnimationDuration(localPath.FullPath);

            startTime = TimeSpan.Zero;
            endTime   = TimeSpan.FromSeconds(durationInSeconds);
        }
Пример #4
0
 /// <inheritdoc/>
 public override EntityInfo GetEntityInfo(UFile localPath, Logger logger)
 {
     var meshConverter = new Importer.FBX.MeshConverter(logger);
     var entityInfo = meshConverter.ExtractEntity(localPath.FullPath);
     return entityInfo;
 }
Пример #5
0
 /// <inheritdoc/>
 public override EntityInfo GetEntityInfo(UFile localPath, Logger logger, AssetImporterParameters importParameters)
 {
     var meshConverter = new Importer.FBX.MeshConverter(logger);
     var entityInfo = meshConverter.ExtractEntity(localPath.FullPath, importParameters.IsTypeSelectedForOutput(typeof(TextureAsset)));
     return entityInfo;
 }