In Pixyz Studio, is there a way to,when I go to export model to FBX or .prefab (imported revit models), it exports Metadata Components with it as well?
Not using Unity’s Pixyz Plugin, but rather looking for a simple checkbox “include Metadata component” when exporting in Studio(I suppose that’s an option with Unity’s plugin) or, worst case scenario, creating a custom plugin from zero.
Plugin from zero is going to be a bit tricky for me, so if you have any detailed explanations, or some kind of a step by step guide as to how could it be done, that would be great.
FBX exported from Pixyz Studio do maintain metadata.
Importing the generated FBX with Unity’s native importer does not retain metadata.
Importing the generated FBX with Pixyz Plugin for Unity retains metadata.
Prefabs exported from Pixyz Studio don’t retain metadata.
An alternative to FBX is using glTF:
Export a .gltf file (or .glb) from Pixyz Studio: metadata are stored in the extras property (that’s the worfklow described here in the doc)
Import the generated .gltf in Unity (Editor or Runtime) with the latest version of Unity’s glTFast, which now supports extras in version.
It’s a very recent addition, so there is no sample or doc yet on how to access extras though.
@AxelJacquet any news on the documentation ? Inside the latest 6.0.1 package, I’m unable to see any references to extras in a script or so.
It was an experimental branch on atteneder GitHub page with metadata, but is has disappeared.
I was not able to get extras working with the official package, since the assembly gltfast.newtonsoft is not referenced or used.
I managed to get it working by importing the latest code from the github repository, remove glTFast.Newtonsoft.asmdef from “glTFast/Runtime/Scripts/Newtonsoft” to make sure it is accessible from the gltfast package.
Then replace “GLTFast.GltfImport” with “GLTFast.Newtonsoft.GltfImport” where you want to use it.
With those changes, the extras data is available in the IGltfReadable object and you can access the metadata to your instantiated objects in the GameObjectInstantiator.cs script in the CreateNode function as such
GLTFast.Newtonsoft.Schema.Node node = (GLTFast.Newtonsoft.Schema.Node)m_Gltf.GetSourceNode((int)nodeIndex);
string val = "";
node.extras.TryGetValue("MetadataName", out val);
Hi AxelJacquet.
I have an IFC file and Revit then exports it to glTF, will the metadata be included in the glTF. I want to save the glTF to Autodesk ACC and then download it to Unity at the path and can my model come with the metadata when downloaded?