HumanoidDescription
*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.
휴머노이드 설명 은 R6 및 R15 리그에 대한 설명을 저장하는 개체입니다.리그의 크기 조정, 의류(Shirt , Pants , ShirtGraphic ), Accessories , Animations 및 BodyColors 을 설정하기 위해 applied 일 수 있습니다.
다음 함수를 사용하여 HumanoidDescription를 얻을 수 있습니다:
- Players:GetHumanoidDescriptionFromUserId() , Roblox에서 현재 착용 중인 사용자의 의상에 대해.
- Players:GetHumanoidDescriptionFromOutfitId() , Roblox에서 사용자가 생성한 의상에 대해.
- HumanoidDescription을 통해 Players:CreateHumanoidModelFromDescription()를 통해 휴머노이드 리그 모델을 만들 수 있습니다.
참조하세요:
- 휴머노이드 설명 시스템 , 자세한 정보는 HumanoidDescription 에 참조하십시오.
요약
속성
배열의 각 테이블에서 장신구자산 ID, 액세서리 유형, 주문 및 (옵션으로) 부드러움을 키-값 쌍으로 설명하는 레이어드 의류의 JSON 형식 배열.
마침표로 구분된 자산 ID 목록이 에 추가되어 장비에 연결되며, 일반적으로 뒤에 연결된 것들(예: 망토)입니다.
Humanoid의 모양을 표준 R15 바디 모양(0)에서 더 높고 더 슬림한 바디 유형(1)으로 변환하는 요소를 결정합니다.
이 설명이 applied 에서 Humanoid 로 변경되면, 이는 해당 Animation.AnimationId 의 플레이 시간을 결정합니다.When this description is to a , this determines the to play when its state is Climbing .
Humanoid의 깊이(앞뒤 거리)가 어떤 요소에 의해 확장되는지 결정합니다.
쉼표로 구분된 자산 ID 목록이 에 추가될 장비에, 일반적으로 얼굴 앞면에 연결된 것들(예: 안경)에 추가됩니다.
이 설명이 applied 에서 Humanoid 로 변경되면, 이는 해당 Animation.AnimationId 의 플레이 시간을 결정합니다.When this description is to a , this determines the to play when its state is Freefall .
마침표로 구분된 자산 ID 목록이 에 추가될 장비에, 일반적으로 몸통 앞부분에 연결된 메달이나 넥타이와 같은 것입니다.
마침표로 구분된 자산 ID 목록이 Accessories 에 추가될 Humanoid 장비에, 일반적으로 머리에 연결된 것처럼 보이는 것을 추가할 때, applied 일반적으로 머리에 연결된 것처럼 보이는 것을 추가할 때
일반적으로 머리에 연결된 리그에 추가될 자산 ID 목록을 쉼표로 구분하여 목록화합니다. 때 일반적으로 머리에 연결된 리그에 추가될 자산 ID 목록을 쉼표로 구분하여 목록화합니다.
머리에 적용할 자산 ID를 Humanoid에 결정합니다.
결정 BodyColors.HeadColor3 및 BodyColors.HeadColor 의 Humanoid 때 applied .
머리 개체의 크기를 결정하는 요소와 개체에 부착된 액세서리를 포함하여, Humanoid의 모든 개체의 크기를 조정합니다.
머리에 부착되지 않은 모든 액세서리와 함께 높이(위아래 거리)의 Humanoid 가 어떤 요소에 의해 확장되는지 결정합니다.
이 설명이 에서 로 변경되면, 이는 속도가 거의 0에 가까울 때 재생할 을 결정합니다.
이 설명이 applied 에서 Humanoid 로 변경되면, 이는 해당 Animation.AnimationId 의 플레이 시간을 결정합니다.When this description is to a , this determines the to play when its state is Jumping .
왼팔에 적용할 자산 ID를 결정하여 Humanoid에 적용합니다.
적용되면 BodyColors.LeftArmColor3 및 BodyColors.LeftArmColor 의 Humanoid 가 결정됩니다.
왼쪽 다리에 적용할 자산 ID를 결정하여 Humanoid에 적용합니다.
적용되면 BodyColors.LeftLegColor3 및 BodyColors.LeftLegColor 의 Humanoid 가 결정됩니다.
쉼표로 구분된 자산 ID 목록이 에 추가될 장비에, 일반적으로 목에 연결된 것들(예: 스카프 또는 목걸이)이 추가됩니다.
PantsTemplate 인스턴스에서 사용하는 Pants 을 결정합니다.
Humanoid 리그가 얼마나 넓은지(0) 또는 좁은지(1)를 결정합니다.
RightArm의 자산 ID를 적용할 Humanoid에 결정합니다.
적용되면 인간형의 BodyColors.RightArmColor3 및 BodyColors.RightArmColor 를 결정합니다.
오른쪽 다리에 적용할 자산 ID를 결정합니다 Humanoid .
적용되면 인간형의 BodyColors.RightLegColor3 및 BodyColors.RightLegColor 를 결정합니다.
이 설명이 에서 로 변경되면, 이는 중간 속도로 재생할 때의 을 결정합니다.
ShirtTemplate 인스턴스에서 사용하는 Shirt 을 결정합니다.
일반적으로 어깨에 부착된 크리처와 같이 에 추가될 자산 ID 목록을 쉼표로 구분합니다. usually those attached to its shoulders (such as shoulder-mounted critters).
이 설명이 applied 에서 Humanoid 로 변경되면, 이는 해당 Animation.AnimationId 의 플레이 시간을 결정합니다.When this description is to a , this determines the to play when its state is Swimming .
적용되면 인간형의 BodyColors.TorsoColor3 및 BodyColors.TorsoColor 를 결정합니다.
쉼표로 구분된 자산 ID 목록이 에 추가될 장비에 일반적으로 벨트와 같은 것들이 연결됩니다(예: 벨트).
이 설명이 에서 로 변경되면, 이는 낮은 속도로 재생할 때 을 재생하도록 결정합니다.
헤드에 부착되지 않은 모든 액세서리와 함께 Humanoid 의 너비(왼쪽에서 오른쪽 거리)가 어떤 요소에 의해 확장되는지 결정합니다.
메서드
이벤트
이모트가 추가되거나 제거되거나 이 설명에 설정되면 발생합니다.
장착된 감정 표현이 이 설명에서 set에 있을 때 발화합니다.
속성
AccessoryBlob
BackAccessory
BodyTypeScale
ClimbAnimation
DepthScale
Face
FaceAccessory
FallAnimation
FrontAccessory
GraphicTShirt
HairAccessory
HatAccessory
Head
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
메서드
GetAccessories
매개 변수
반환
코드 샘플
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
SetAccessories
매개 변수
반환
코드 샘플
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)