|
Drag[en]gine Script Module DragonScript 1.32.1
|
Interface for factories supporting creating attachable behaviors. More...
Public Member Functions | |
| ECAttachableBehavior | createAttachableBehavior (BehaviorElement element) |
| Create attachable behavior. | |
| String | factoryId () |
| Unique identifier of factory. | |
Interface for factories supporting creating attachable behaviors.
For use with behavior element to add attachable behaviors during element instantiation. Added attachable behaviors are required to find the best matching dependency behavior. The user can assign specific attachable behaviors later on.
| ECAttachableBehavior Dragengine.Scenery.AttachableBehaviorFactory.createAttachableBehavior | ( | BehaviorElement | element | ) |
Create attachable behavior.
| element | Element to add attachable behavior to. |
It is possible to return null if no attachable behavior should be created. This can be useful for different purposes. For example conditional creation based on element properties. Another example are attachable behaviors only applying an effect to an element without needing to be present as an attachable behavior. These kind of attachable behaviors do not allow or require to be removed later on.
Implemented in Dragengine.Scenery.ECABehaviorAnchorElement.Factory.
| String Dragengine.Scenery.AttachableBehaviorFactory.factoryId | ( | ) |
Unique identifier of factory.
Should be the class name of the behavior. Factory identifiers are case sensitive.
Implemented in Dragengine.Scenery.ECABehaviorAnchorElement.Factory.