Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.Scenery.AttachableBehaviorFactory Interface Reference

Interface for factories supporting creating attachable behaviors. More...

Inheritance diagram for Dragengine.Scenery.AttachableBehaviorFactory:
Dragengine.Scenery.ECABehaviorAnchorElement.Factory

Public Member Functions

ECAttachableBehavior createAttachableBehavior (BehaviorElement element)
 Create attachable behavior.
 
String factoryId ()
 Unique identifier of factory.
 

Detailed Description

Interface for factories supporting creating attachable behaviors.

Version
1.29

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.

Member Function Documentation

◆ createAttachableBehavior()

ECAttachableBehavior Dragengine.Scenery.AttachableBehaviorFactory.createAttachableBehavior ( BehaviorElement  element)

Create attachable behavior.

Parameters
elementElement 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.

◆ factoryId()

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.


The documentation for this interface was generated from the following file: