mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 10:29:47 +00:00
update doc/*/scripting/builtins/libassets.md
This commit is contained in:
parent
0643909efd
commit
8a8119e0c2
2 changed files with 24 additions and 4 deletions
|
|
@ -25,10 +25,10 @@ assets.load_texture(
|
|||
|
||||
-- Parses and loads a 3D model
|
||||
assets.parse_model(
|
||||
-- Model file format (xml / vcm)
|
||||
-- Model file format (xml / vcm / obj / vec3)
|
||||
format: str,
|
||||
-- Contents of the model file
|
||||
content: str,
|
||||
content: str | Bytearray (.vec3),
|
||||
-- Model name after loading
|
||||
name: str,
|
||||
-- The skeleton name after loading. May be the same as the model name.
|
||||
|
|
@ -37,6 +37,16 @@ assets.parse_model(
|
|||
skeleton_name: string
|
||||
)
|
||||
|
||||
-- Parses and loads a skeleton definition
|
||||
assets.parse_skeleton(
|
||||
-- Skeleton file format (json / vcm / xml)
|
||||
format: str,
|
||||
-- Contents of the skeleton file
|
||||
content: str,
|
||||
-- Skeleton name after loading
|
||||
name: str
|
||||
)
|
||||
|
||||
-- Parses and loads animation
|
||||
assets.parse_animation(
|
||||
-- Animation file format (vca)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue