foundation-library-functions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| foundation-library-functions [2026/02/23 16:53] – polymorphgames | foundation-library-functions [2026/08/03 17:10] (current) – maxime | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| Creates a new instance of a data type | Creates a new instance of a data type | ||
| - | '' | + | '' |
| ^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
| Line 74: | Line 74: | ||
| ... | ... | ||
| } | } | ||
| - | foundation.createData(instanceData ) | + | local newData = foundation.createData(instanceData) |
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== createAsset ===== | ||
| + | |||
| + | Creates a new runtime instance of an asset type | ||
| + | |||
| + | '' | ||
| + | |||
| + | ^ Name ^ Type ^ Description ^ | ||
| + | | //'' | ||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | <code lua> | ||
| + | local assetData = { | ||
| + | DataType = " | ||
| + | ... | ||
| + | } | ||
| + | local newAsset = foundation.createAsset(assetData) | ||
| </ | </ | ||
foundation-library-functions.1771883590.txt.gz · Last modified: 2026/02/23 16:53 by polymorphgames
