Skip to content

Commit 233d204

Browse files
Site changes [skip-ci]
1 parent 62bf196 commit 233d204

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

_data/extensions/extension-rive_rive.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,36 @@
447447
"returnvalues": [],
448448
"type": "FUNCTION"
449449
},
450+
{
451+
"description": "Replace an asset in runtime.",
452+
"examples": "",
453+
"name": "rive.riv_swap_asset",
454+
"parameters": [
455+
{
456+
"doc": "The Rive (.rivc) path. E.g. \"/path/to/file.rivc\"",
457+
"name": "riv_path",
458+
"types": [
459+
"string,hash"
460+
]
461+
},
462+
{
463+
"doc": "The name of the FileAsset inside the .riv file",
464+
"name": "asset_name",
465+
"types": [
466+
"string"
467+
]
468+
},
469+
{
470+
"doc": "The name of the asset file to replace with. E.g. \"/path/to/file.png\"",
471+
"name": "asset_path",
472+
"types": [
473+
"string"
474+
]
475+
}
476+
],
477+
"returnvalues": [],
478+
"type": "FUNCTION"
479+
},
450480
{
451481
"description": "Creates a ViewModelInstanceRuntime",
452482
"examples": "",

0 commit comments

Comments
 (0)