External Resource
Content List
- Action External Resource Behavior
- Condition External Resource Behavior
- Value Processing External Resource Behavior
Action External Resource Behavior
Set External Bitmap
Description
Sets ExternalResourceId and ExternalResourceManagerId properties of an associated ExternalBitmapProvider when its action is triggered.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| ExternalResourceId | String |
A unique id of an external resource to be provided. |
| ExternalResourceManagerId | String |
A unique id of an external resource manager to retrieve the external resource from. |
| ImageProvider | ExternalBitmapProviderBehavior |
External Bitmap Provider that retrieves and provides a bitmap. |
Condition External Resource Behavior
Check External Resource Change
Description
Reacts on ExternalResourceEvent if and only if the ExternalResourceId and ExternalResourceManagerId of the event match the condition’s properties, triggering the associated action.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| ExternalResourceId | String |
A unique id of an external resource to be provided. |
| ExternalResourceManagerId | String |
A unique id of an external resource manager to retrieve the external resource from. |
Value Processing External Resource Behavior
External Bitmap Provider
Description
Retrieves an external bitmap with ExternalResourceId from an external resource provider with ExternalResourceManagerId and provides the bitmap to an associated bitmap node.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| TargetNode | Candera::AbstractNodePointer |
The Node which is modified. If not set, then the node where the behavior is attached to, will be modified. |
| ExternalResourceId | String |
A unique id of an external resource to be provided. |
| ExternalResourceManagerId | String |
A unique id of an external resource manager to retrieve the external resource from. |
Example Usage of External Resource Behaviors
Here is an example of the use of each External Resource behavior.
How to reference external resources
For information on referencing external resource files, see Referencing external resource. The following usage example uses an external resource that was loaded into the solution during this operation.
External Bitmap Provider
Attach [ Behavior > External Resource > Value Processing > External Bitmap Provider ] in the Toolbox to the Behavior in the Extra Scene Tree of the placed bitmap node by drag-and-drop operation.

Click External Bitmap Provider behavior and and specify the target image file to ExternalResourceId in the properties panel that appears. ExternalResourceId can be set in the following two ways.

The selected external resource will appear in the scene editor.
Set External Bitmap
- Drag
&and dropatheBitmapNode[ Node 2D > Bitmap Node ] from the"Nodestoolbox2D"ontopaneltheofscene editor, or the scene tree.

Drag and drop the [ Controls > Touchable > Button ] from the toolbox onto the scene editor, or the

Click the select item button on the ImageProvider in the properties panel that appears and select the External Bitmap Provider


Run the player and

Check External Resource Change
This example cannot be executed without Android studio installed.
Attach [ Behavior > External Resource > Value Processing > External Bitmap Provider
Select Scene2D in the scene tree and attach [ Behaviors > Control > Event Handler ] to the displayed extra scene tree by drag-and-drop operation.


Select the Scene2D in the scene tree, in the displayed extra scene tree, attach [ Behavior > External Resource > Action > Set External Bitmap

properties

Select the Set External Bitmap behavior you added.
Click External Bitmap Provider behavior and and specify the target image file to ExternalResourceId in the properties panel that appears. ExternalResourceId can be set in the following two ways.
Select
Click the Select Item button for
Each time the
At this time, this event is only supported on Android systems when the user has enabled or disabled the installed RRO package.