mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add skeleton:get_color(), skeleton:set_color(...)
This commit is contained in:
parent
0c4cdeaa87
commit
52c39d25d0
5 changed files with 40 additions and 1 deletions
|
|
@ -141,6 +141,20 @@ rig:set_texture(key: str, value: str)
|
|||
|
||||
-- Returns the bone index by name or nil
|
||||
rig:index(name: str) -> int
|
||||
|
||||
-- Checks the visibility status of a bone by index
|
||||
-- or the skeleton if no index is specified
|
||||
rig:is_visible([optional] index: int) -> bool
|
||||
|
||||
-- Sets the visibility status of a bone by index
|
||||
-- or the skeleton if no index is specified
|
||||
rig:set_visible([optional] index: int, status: bool)
|
||||
|
||||
-- Returns the color of the entity
|
||||
rig:get_color() -> vec3
|
||||
|
||||
-- Sets the color of the entity
|
||||
rig:set_color(color: vec3)
|
||||
```
|
||||
|
||||
## Component events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue