Class MaterialConverter
Serves as an abstract base for converting a ufbx material into a Unity material.
Inherited Members
Namespace: FBXImporter.MaterialConverters
Assembly: FBXImporter.MaterialMappers.dll
Syntax
public abstract class MaterialConverter
Methods
Convert(ufbx_material*, Dictionary<IntPtr, Texture2D>)
Converts a ufbx material pointer into a Unity material, optionally using provided textures.
Declaration
public abstract Material Convert(ufbx.ufbx_material* material, Dictionary<IntPtr, Texture2D> textures)
Parameters
Type | Name | Description |
---|---|---|
ufbx_material* | material | Pointer to the ufbx material. |
Dictionary<IntPtr, Texture2D> | textures | Maps ufbx textures to Unity Texture2D objects. |
Returns
Type | Description |
---|---|
Material | A new or updated Unity material that corresponds to the ufbx material. |