Skip to content
Projets

À propos

FBX SDK C# bindings

Outils de développement

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

FbxSharp Project : FBX SDK C# bindings

The FBX SDK C# bindings are available in Unity 2020.3 or later via the com.autodesk.fbx package in the Package Manager.

The bindings were built to support the Fbx Exporter package (com.unity.formats.fbx).

The bindings are a subset of the FBX SDK, and in particular they do not support all that you would need for a general-purpose importer.

Building from source

Requirements

  • Unity 2020.3
  • cmake 3.12
  • swig 3.0.12 -- note that 4.0 is not compatible.
  • Python 2.7.x or 3.x
  • Windows: Visual Studio Community
  • macOS: macOS 10.15 or later with Xcode 12.x with command-line tools installed
  • Linux: Ubuntu 22.04, with the packages that build_linux.sh installs

Newer versions of each software likely also work, except as noted.

Windows

When installing Visual Studio, make sure to install C# sdk, C++ sdk, and Universal Windows App Development Tools (this can be done by doing a custom install or relaunching the installer and selecting "Modify").

OSX, Linux, or Windows:

# get the source
git clone https://github.com/Unity-Technologies/com.autodesk.fbx.git
cd com.autodesk.fbx
python build.py

Overview

Writing C# code

// Using the Autodesk.Fbx namespace

using Autodesk.Fbx;

// global variables are found in Autodesk.Fbx.Globals
var nameForIO = Globals.FbxDoubleDT.GetNameForIO();

var sdkManager = FbxManager.Create();

sdkManager.Destroy();

Running Tests

  1. Create a new 3d project in Unity.
  2. Copy the build/install/com.autodesk.fbx folder into the Packages folder of the new project.
  3. Use Window > General > Test Runner to run tests

API Documentation

After compiling, the documentation will be in

FbxSharp/build/docs/html/index.html

Or in zipped form in

FbxSharp/build/install/com.autodesk.fbx/Documentation~/docs.zip

In the Unity package, the documentation is packaged as the zip file.

Reporting Bugs

Please create a minimal Unity project that reproduces the issue and use the Unity Bug Reporter (built in to the Unity Editor).

Explorer des projets similaires

Chargement…