User Tools

Site Tools


preview:components

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
preview:components [2019/05/02 14:23] polymorphgamespreview: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:api#Component Classes|here]]. 
- 
-Components can be added to any FBX node with the ''mod:registerPrefabComponent'' function. 
- 
-<file lua mod.lua> 
-mod:registerPrefabComponent("models/MithrilFactory.fbx/Prefab/MithrilFactory/ExtensionB/RootPart", { 
- DataType = "COMP_DIRT_RECTANGLE", 
- Size = {8, 8} 
-}) 
-</file> 
- 
-See mod Example 02 for more examples. 
preview/components.1556821429.txt.gz · Last modified: 2019/05/02 14:23 by polymorphgames

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki