FBX SDK如何将自定义属性设置为FbxScene

时间:2020-05-29 03:53:01

标签: c++ fbx

我想将一些自定义字符串序列化为FbxScene,该字符串将传递给FbxExporter

使用FbxProperty,我看到了

之类的代码段
FbxProperty::Create(pNode, ...) 

但是它们在特定节点上起作用,而我要序列化的字符串对于.fbx文件是全局的。

我正在考虑与此类似的东西,但是我不确定要调用的特定函数:

// To save
FbxScene scene;
string myString = "string to add";
scene->getPropertyHandle().add("myPropertyName", myString);

// To load
FbxScene scene;
string myString = scene->findProperty("myPropertyName").get<string>();

0 个答案:

没有答案
相关问题