HumanoidDescription

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

휴머노이드 설명 은 R6 및 R15 리그에 대한 설명을 저장하는 개체입니다.리그의 크기 조정, 의류(Shirt , Pants , ShirtGraphic ), Accessories , AnimationsBodyColors 을 설정하기 위해 applied 일 수 있습니다.

다음 함수를 사용하여 HumanoidDescription를 얻을 수 있습니다:

참조하세요:

요약

속성

메서드

  • AddEmote(name : string,assetId : number):()

    이모트를 이름과 자산 ID가 지정된 설명에 추가합니다.

  • GetAccessories(includeRigidAccessories : boolean):Array

    아바타의 현재 액세서리 테이블을 반환합니다.

  • 이 설명에 added 또는 set 가 된 감정 표현 사전을 반환합니다.

  • 장착된 이모트를 설명하는 배열의 테이블을 반환합니다 set .

  • RemoveEmote(name : string):()

    지정된 이름 아래에 추가된 모든 감정 표현을 제거합니다.

  • SetAccessories(accessories : Array,includeRigidAccessories : boolean):()

    아바타에 대한 액세서리 및 관련 속성을 설정하는 테이블을 허용합니다.

  • SetEmotes(emotes : Dictionary):()

    이 설명의 모든 감정 표현을 설정합니다.

  • SetEquippedEmotes(equippedEmotes : Array):()

    현재 장착된 감정 표현을 감정 이름 배열로 설정합니다.

이벤트

속성

AccessoryBlob

복제되지 않음
스크립팅할 수 없음
병렬 읽기

BackAccessory

복제되지 않음
병렬 읽기

BodyTypeScale

병렬 읽기

ClimbAnimation

병렬 읽기

DepthScale

병렬 읽기

Face

병렬 읽기

FaceAccessory

복제되지 않음
병렬 읽기

FallAnimation

병렬 읽기

FrontAccessory

복제되지 않음
병렬 읽기

GraphicTShirt

병렬 읽기

HairAccessory

복제되지 않음
병렬 읽기

HatAccessory

복제되지 않음
병렬 읽기
복제되지 않음
병렬 읽기

HeadColor

복제되지 않음
병렬 읽기

HeadScale

병렬 읽기

HeightScale

병렬 읽기

IdleAnimation

병렬 읽기

JumpAnimation

병렬 읽기

LeftArm

복제되지 않음
병렬 읽기

LeftArmColor

복제되지 않음
병렬 읽기

LeftLeg

복제되지 않음
병렬 읽기

LeftLegColor

복제되지 않음
병렬 읽기

MoodAnimation

병렬 읽기

NeckAccessory

복제되지 않음
병렬 읽기

Pants

병렬 읽기

ProportionScale

병렬 읽기

RightArm

복제되지 않음
병렬 읽기

RightArmColor

복제되지 않음
병렬 읽기

RightLeg

복제되지 않음
병렬 읽기

RightLegColor

복제되지 않음
병렬 읽기

RunAnimation

병렬 읽기

Shirt

병렬 읽기

ShouldersAccessory

복제되지 않음
병렬 읽기

SwimAnimation

병렬 읽기

Torso

복제되지 않음
병렬 읽기

TorsoColor

복제되지 않음
병렬 읽기

WaistAccessory

복제되지 않음
병렬 읽기

WalkAnimation

병렬 읽기

WidthScale

병렬 읽기

메서드

AddEmote

()

매개 변수

name: string
기본값: ""
assetId: number
기본값: ""

반환

()

GetAccessories

매개 변수

includeRigidAccessories: boolean
기본값: ""

반환

코드 샘플

Get Accessories

local includeRigidAccessories = true
local accessoriesTable =
game:GetService("Players"):GetHumanoidDescriptionFromUserId(1):GetAccessories(includeRigidAccessories)
for _, accessoryInfo in ipairs(accessoriesTable) do
print(tostring(accessoryInfo.AssetId) .. " " .. tostring(accessoryInfo.AccessoryType))
end

GetEmotes


반환

GetEquippedEmotes


반환

RemoveEmote

()

매개 변수

name: string
기본값: ""

반환

()

SetAccessories

()

매개 변수

accessories: Array
기본값: ""
includeRigidAccessories: boolean
기본값: ""

반환

()

코드 샘플

Set Accessories

local humanoidDescription = Instance.new("HumanoidDescription")
local originalSpecifications = {
{
Order = 1,
AssetId = 123456789,
Puffiness = 0.5,
AccessoryType = Enum.AccessoryType.Sweater,
},
}
humanoidDescription:SetAccessories(originalSpecifications)
local updatedSpecifications = humanoidDescription:GetAccessories(false)
local newIndividualSpecification = {
Order = 2,
AssetId = 987654321,
Puffiness = 0.7,
AccessoryType = Enum.AccessoryType.Jacket,
IsLayered = true,
}
updatedSpecifications[#updatedSpecifications + 1] = newIndividualSpecification
humanoidDescription:SetAccessories(updatedSpecifications)

SetEmotes

()

매개 변수

emotes: Dictionary
기본값: ""

반환

()

SetEquippedEmotes

()

매개 변수

equippedEmotes: Array
기본값: ""

반환

()

이벤트

EmotesChanged

매개 변수

newEmotes: Dictionary

EquippedEmotesChanged

매개 변수

newEquippedEmotes: Array