preview:components
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
preview:components [2019/12/18 18:03] – created maxime | preview:components [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Components ====== | ||
- | Components are small modules used to define the behavior of any game object. Game objects can have any number of components, but can have only one of each type. | ||
- | See the list of all available components [[preview: | ||
- | |||
- | ---- | ||
- | |||
- | You can define new types of components with the '' | ||
- | |||
- | When you define a new component type, you can assign it properties that are editable, usable in your component' | ||
- | |||
- | Components can also have functions. In addition to new functions, you can override some base functions that are automatically called for all components: | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | | ||
- | You can see an example of component definition in the mod Example 02 in '' | ||
- | |||
- | ---- | ||
- | |||
- | Components can be added to any FBX node with the '' | ||
- | |||
- | <file lua mod.lua> | ||
- | mod: | ||
- | DataType = " | ||
- | Size = {8, 8} | ||
- | }) | ||
- | </ | ||
- | |||
- | See mod Example 02 for more examples. |
preview/components.1576710229.txt.gz · Last modified: 2019/12/18 18:03 by maxime