mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-03 11:36:36 +00:00
Use the field descriptor struct to add fields instead of the overloads
Adds a visibility function to control whether a field is visible in the inspector
EG:
ADD_FIELD("soundFile", TypeAssetLooseFilePath, Offset(mSoundFile, SoundAsset))
.doc("Path to the sound file.")
.elements(SFXPlayList::SFXPlaylistSettings::NUM_SLOTS)
.onSet(&_setSoundFile);
the grammar can change to make these easier to work with, review changes carefully
|
||
|---|---|---|
| .. | ||
| customField.cpp | ||
| customField.h | ||
| datablockField.cpp | ||
| datablockField.h | ||
| dynamicField.cpp | ||
| dynamicField.h | ||
| dynamicGroup.cpp | ||
| dynamicGroup.h | ||
| field.cpp | ||
| field.h | ||
| group.cpp | ||
| group.h | ||
| variableField.cpp | ||
| variableField.h | ||
| variableGroup.cpp | ||
| variableGroup.h | ||
| variableInspector.cpp | ||
| variableInspector.h | ||