foundation-library-functions
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
foundation-library-functions [2020/05/22 12:18] – created maxime | foundation-library-functions [2023/09/14 11:31] – [findAsset] mathieu | ||
---|---|---|---|
Line 16: | Line 16: | ||
'' | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== isModLoaded ===== | ||
+ | |||
+ | Checks if a mod is already loaded, for soft dependencies purposes | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
Line 42: | Line 55: | ||
'' | '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== createData ===== | ||
+ | |||
+ | Creates a new instance of a data type | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | <code lua> | ||
+ | local instanceData = { | ||
+ | DataType = " | ||
+ | ... | ||
+ | } | ||
+ | foundation.createData(instanceData ) | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== findAsset ===== | ||
+ | |||
+ | Finds an asset by its name | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== findGameObject ===== | ||
+ | |||
+ | Finds a GameObject by its name | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' |
foundation-library-functions.txt · Last modified: 2023/09/14 11:32 by mathieu