Example #1
0
 public static UniTask <Icon> LoadIconAsync(this ResourceFile file, FrameTimingPoint?timingPoint,
                                            CancellationToken cancellationToken = default)
 {
     return(AsyncLoadCore(static file => LoadIcon(file), file,
 public static Model3D CreateObjModel(this ResourceFile file, CancellationToken cancellationToken = default)
 {
     return(ObjModelBuilder.CreateLazyLoadingObj(file, cancellationToken));
 }
Example #3
0
 public static Icon LoadIcon(this ResourceFile file)
 {
     using var stream = file.GetStream();
     return(IcoParser.Parse(stream));
 }