BehaviorAsset
Description
The BehaviorAsset object represents an asset with the
Behavior asset type in the RoadRunner project. Behavior assets store user-defined parameters as
.rrbehavior files that enable you to create custom simulation behaviors
for actors. You can use a BehaviorAsset object to assign an
.rrbehavior asset to an actor in your scenario. For more information on
user-defined parameters in RoadRunner Scenario, see Scenario Parameters (RoadRunner Scenario).
Creation
You can create a BehaviorAsset object in these ways:
The
getAssetfunction extracts an object for the asset of the specified asset type at the specified path relative to theAssetfolder of the specified project. Specify theassetTypeargument as"BehaviorAsset"to extract aBehaviorAssetobject.The
createAssetfunction creates an asset of the specified asset type at the specified path relative to theAssetfolder of the specified project. Specify theassetTypeargument as"BehaviorAsset"to create aBehaviorAssetobject. The extension you specify for the new asset must match the type specified for theassetTypeargument.
Properties
Examples
Version History
Introduced in R2025a
See Also
addActor | createAsset | CharacterAsset | MovableObjectAsset | VehicleAsset
Topics
- Scenario Parameters (RoadRunner Scenario)
- Built-In Behavior for Vehicles (RoadRunner Scenario)