update doc/*/scripting/builtins/libassets.md

This commit is contained in:
MihailRis 2025-11-05 20:59:35 +03:00
parent 878d824548
commit 340b469b40
2 changed files with 16 additions and 0 deletions

View File

@ -25,4 +25,12 @@ assets.parse_model(
-- Model name after loading
name: str
)
-- Creates a Canvas from a loaded texture.
assets.to_canvas(
-- The name of the loaded texture.
-- Both standalone textures ("texture_name") and
-- those in an atlas ("atlas:texture_name") are supported
name: str
) --> Canvas
```

View File

@ -25,4 +25,12 @@ assets.parse_model(
-- Имя модели после загрузки
name: str
)
-- Создаёт холст (Canvas) из загруженной текстуры
assets.to_canvas(
-- Имя загруженной текстуры.
-- Поддерживается как отдельные ("имя_текстуры"),
-- так и находящиеся в атласе ("атлас:имя_текстуры").
name: str
) --> Canvas
```