IsAttached#
- ExportTransform.IsAttached: boolean#
このGameObject自身が SubItem である場合、その SubItem が 装着 されているかどうかを返します。SubItem でない場合は常にfalseを返します。
Example#
local subItem = vci.assets.GetTransform("SubItem1")
-- Useする度に装着状態を切り替える
function onUse(use)
if use == "SubItem1" then
if subItem.IsAttached then
subItem.DetachFromAvatar()
else
subItem.AttachToAvatar()
end
end
end