【发布时间】:2021-04-13 11:07:06
【问题描述】:
这有点奇怪,但无论我尝试多少次,我创建的所有材质和贴图都会出现在 General 类别材质中。 这是我的材料类别代码。
const TCHAR* Category() { return NULL; }//_T(""); }//GetString(IDS_CATEGORY); }
const MCHAR* GetEntryName() const { return LuxMixMapFriendlyClassName; } //NULL; }
const MCHAR* GetEntryCategory() const {
HINSTANCE hInst = GetModuleHandle(_T("sme.gup"));
if (hInst) {
//Extract a resource from the calling module's string table.
static MSTR category(MaxSDK::GetResourceStringAsMSTR(hInst,
IDS_3DSMAX_SME_MATERIALS_CATLABEL).Append(_T("\\Lux")));
return category.data();
}
else
{
return _T("Maps\\Lux");
}
}
enter code here
【问题讨论】: