Ejemplo n.º 1
0
        public FbxScene LoadScene(FbxImportOptions options)
        {
            var native = FbxManagerLoadScene(NativePtr, new StringBuilder(AssetBundle.Current.ToSystemPath(options.Path)));

            if (native == IntPtr.Zero)
            {
                throw new FbxImportException("An error has occured while loading scene");
            }
            var scene = new FbxScene(native);

            createdScenes.Add(scene);
            return(scene);
        }
Ejemplo n.º 2
0
 public FbxModelImporter(FbxImportOptions options)
 {
     this.options = options;
     manager      = FbxManager.Create();
 }