캐릭터 모습

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

대부분의 경험은 플레이어가 자신의 Roblox 아바타를 사용할 수 있지만, 일부는 UGC 홈스토어 템플릿과 같은 경험 내 사용자 지정 시스템을 구현합니다.다른 경험은 헬멧, 날개 또는 장르와 일치하는 액세서리와 같은 플레이어 아바타에 제한된 수정을 합니다.

사용자의 모양을 변경하는 독특한 경험을 만들려면 팔로잉기본 캐릭터 속성을 사용자 정의할 수 있습니다.

  • 아바타 게임 설정을 구성하여 모든 사용자에게 기본 글로벌 아바타 모양 기본값을 설정합니다.
  • 경험의 하나 이상의 사용자에게 광범위한 특정 문자 사용자 지정을 적용하기 위해 HumanoidDescription을 언제든지 사용하십시오.

게임 설정

게임 설정 메뉴의 아바타 섹션을 통해 경험에서 여러 글로벌 캐릭터 속성을 신속하게 설정할 수 있습니다.아바타 게임 설정을 편집할 때 아바타는 작업 영역에서 시각적 미리 보기로 표시됩니다.

아바타 게임 설정을 사용하여 경험에서 다음 캐릭터 속성을 조정할 수 있습니다.

설정설명
프리셋일반적인 세트의 BodyTypeScaleProportionScale 조합을 적용합니다. 미리 설정을 선택한 후에는 HumanoidDescription 후에 이러한 속성을 추가로 조정할 수 있습니다.
아바타 유형기본 아바타 유형을 R15 또는 R6으로 설정합니다.
애니메이션사용자가 액세스할 수 있는 Animations 의 집합.
충돌경험의 캐릭터에 대한 충돌 경계를 설정합니다.
바디 부품캐릭터의 Face , Head , Torso , RightArm , LeftArm , RightLegLeftLeg 부분의 자산 ID.
의류캐릭터에 적용할 수 있는 클래식 Shirt , PantsShirtGraphic 이미지 텍스처의 자산 ID.

아바타 유형

아바타 유형 설정은 경험을 R15 또는 R6 캐릭터 모델만 로드하도록 설정합니다.

  • R15 는 15개의 팔다리가 있는 기본 현대 아바타입니다. 이 아바타는 더 유연한 사용자 지정, 액세서리 옵션 및 애니메이션을 허용합니다.

  • R6 는 6개의 팔다리가 있는 클래식한 간단한 아바타입니다.이 아바타 유형은 레트로풍을 제공하지만 애니메이션 및 추가 사용자 지정이 제한됩니다.바디 스케일 속성의 변경은 R6 문자에 영향을 주지 않습니다.

R15 캐릭터 모델.
>

R6 캐릭터 모델.
>

충돌 경계

충돌 설정은 경험의 문자에 대한 충돌 경계를 설정합니다.이는 경험의 캐릭터의 물리적 모양에 영향을 주지 않습니다.

이 옵션을 외부 상자 로 설정하면 캐릭터의 개별 모델에 따라 충돌 상자의 크기가 동적으로 조정됩니다.대부분의 경험에 대한 기본 및 권장 설정입니다.

이 옵션을 내부 상자 로 설정하면 경험의 모든 캐릭터에 대한 고정된 충돌 경계가 제공됩니다.

휴머노이드 설명

플레이 가능한 캐릭터 모델에는 걷기, 점프, 아이템 장착, 환경과 상호작용하는 등의 모델 특성을 허용하는 Humanoid 개체가 포함되어 있습니다.Humanoid 캐릭터의 모습사용자 지정하려면 새로운 HumanoidDescription 를 적용하여 캐릭터 속성을 변경할 수 있습니다.

다음 캐릭터 속성을 조정하여 경험에서 HumanoidDescription를 사용할 수 있습니다.

캐릭터 속성설명
규모물리적 특성의 숫자 값 height , width , head , body typeproportion . 이는 R6 신체 유형에 영향을 주지 않습니다.
장신구캐릭터에 의해 장착된 자산 ID accessories.
클래식 복장캐릭터에 적용할 수 있는 Shirt, PantsShirtGraphic 이미지 텍스처의 자산 ID.
신체 부분캐릭터의 Face , Head , Torso , RightArm , LeftArm , RightLegLeftLeg 부분의 자산 ID.
바디 색상문자의 개별 부분의 BodyColors .
애니메이션캐릭터에서 사용할 수 있는 자산 ID Animations.

다음 단계를 사용하여 캐릭터를 HumanoidDescription 사용자 지정할 수 있습니다:

  1. 설명을 수정하여 문자에 적용하려는 속성을 사용자 지정합니다.

휴머노이드 설명 생성

탐색기 계층 내에서 또는 다음 코드로 새 인스턴스를 직접 생성할 수 있습니다.


local humanoidDescription = Instance.new("HumanoidDescription")

대부분의 경우, 기존의 를 참조하여 기본 새 대신 기존 플레이어 캐릭터 또는 아바타 또는 사용자 ID 를 사용해야 합니다.

플레이어 캐릭터에서

다음 코드 샘플을 사용하여 플레이어 캐릭터의 현재 속성을 기반으로 새로운 HumanoidDescription를 생성합니다.


local humanoid = player.Character and player.Character:FindFirstChildWhichIsA("Humanoid")
local humanoidDescription = Instance.new("HumanoidDescription")
if humanoid then
humanoidDescription = humanoid:GetAppliedDescription()
end

기존 의상에서

다음 샘플 코드를 사용하여 의상 ID를 사용하여 HumanoidDescription를 생성하십시오: Players.GetHumanoidDescriptionFromOutfitID :


local Players = game:GetService("Players")
local outfitId = 480059254
local humanoidDescriptionFromOutfit = Players:GetHumanoidDescriptionFromOutfitId(outfitId)

특정 사용자로부터

다음 샘플 코드를 사용하여 사용자 ID를 사용하여 HumanoidDescription를 생성하십시오: Players:GetHumanoidDescriptionFromUserId() :


local Players = game:GetService("Players")
local userId = 491243243
local humanoidDescriptionFromUser = Players:GetHumanoidDescriptionFromUserId(userId)

HumanoidDescription 수정

HumanoidDescription 속성을 사용자 지정하려면 직접 HumanoidDescription 에 설정하거나 문자에 HumanoidDescription 적용하기 전에 지정된 메서드를 사용하세요.

다음 코드 샘플은 다양한 유형의 HumanoidDescription 속성을 설정하는 예를 제공합니다:


local humanoidDescription = Instance.new("HumanoidDescription")
humanoidDescription.HatAccessory = "2551510151,2535600138"
humanoidDescription.BodyTypeScale = 0.1
humanoidDescription.ClimbAnimation = 619521311
humanoidDescription.Face = 86487700
humanoidDescription.GraphicTShirt = 1711661
humanoidDescription.HeadColor = Color3.new(0, 1, 0)

여러 액세서리 설정

레이어 또는 대량 액세서리 변경의 경우 HumanoidDescription:SetAccessories()를 사용하여 액세서리 관련 업데이트를 수행할 수 있습니다.다음 코드 샘플은 순서대로 레이어 스웨터와 재킷을 추가하여 HumanoidDescription에 다음과 같이 추가합니다.


local humanoidDescription = Instance.new("HumanoidDescription")
local accessoryTable = {
{
Order = 1,
AssetId = 6984769289,
AccessoryType = Enum.AccessoryType.Sweater
},
{
Order = 2,
AssetId = 6984767443,
AccessoryType = Enum.AccessoryType.Jacket
}
}
humanoidDescription:SetAccessories(accessoryTable, false)

휴머노이드 설명 적용

경험에서 HumanoidDescription 특정 Humanoid 문자에 Humanoid:ApplyDescription() 또는 Humanoid.LoadCharacterWithHumanoidDescription 를 적용합니다.

단일 문자에 대해

ApplyDescription() 는 모든 Humanoid 를 대상으로 할 수 있습니다. 플레이어 캐릭터에 새로운 선글라스 쌍과 새로운 몸통을 추가하기 위해 다음 코드를 사용하십시오:


local humanoid = player.Character and player.Character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
local descriptionClone = humanoid:GetAppliedDescription()
descriptionClone.Torso = 86500008
-- 쉼표로 구분된 문자열에는 여러 개의 얼굴 액세서리 자산이 허용됩니다
descriptionClone.FaceAccessory = descriptionClone.FaceAccessory .. ",2535420239"
-- 수정된 "descriptionClone"을 휴머노이드에 적용
humanoid:ApplyDescription(descriptionClone)
end

모든 플레이어 캐릭터에서

다음 샘플 코드를 사용하여 게임의 모든 현재 플레이어에게 HumanoidDescription를 적용하십시오:


local Players = game:GetService("Players")
for _, player in Players:GetPlayers() do
local humanoid = player.Character and player.Character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
-- 인간형 설명 만들기
local humanoidDescription = Instance.new("HumanoidDescription")
humanoidDescription.HatAccessory = "2551510151,2535600138"
humanoidDescription.BodyTypeScale = 0.1
humanoidDescription.ClimbAnimation = 619521311
humanoidDescription.Face = 86487700
humanoidDescription.GraphicTShirt = 1711661
humanoidDescription.HeadColor = Color3.new(0, 1, 0)
humanoid:ApplyDescription(humanoidDescription)
end
end

모든 생성 캐릭터에 대해

다음 샘플 코드를 사용하여 모든 생성 플레이어 캐릭터에 특정 HumanoidDescription를 설정합니다:


local Players = game:GetService("Players")
-- 자동 스폰을 중지하여 "PlayerAdded" 콜백에서 수행할 수 있음
Players.CharacterAutoLoads = false
local function onPlayerAdded(player)
-- 인간형 설명 만들기
local humanoidDescription = Instance.new("HumanoidDescription")
humanoidDescription.HatAccessory = "2551510151,2535600138"
humanoidDescription.BodyTypeScale = 0.1
humanoidDescription.ClimbAnimation = 619521311
humanoidDescription.Face = 86487700
humanoidDescription.GraphicTShirt = 1711661
humanoidDescription.HeadColor = Color3.new(0, 1, 0)
-- HumanoidDescription로 캐릭터 생성
player:LoadCharacterWithHumanoidDescription(humanoidDescription)
end
-- Connect "PlayerAdded" 이벤트를 "onPlayerAdded()" 함수에 연결
Players.PlayerAdded:Connect(onPlayerAdded)

탐색기에서 인스턴스 HumanoidDescription 가 생성되고 작업 영역에 부모로 지정되면 다음 샘플 코드를 Script 에서 작업 영역 인스턴스에 액세스하기 위해 사용하십시오:


local Players = game:GetService("Players")
-- 자동 스폰을 중지하여 "PlayerAdded" 콜백에서 수행할 수 있음
Players.CharacterAutoLoads = false
local function onPlayerAdded(player)
-- “workspace.StudioHumanoidDescription”로 캐릭터 생성
player:LoadCharacterWithHumanoidDescription(workspace.StudioHumanoidDescription)
end
-- Connect "PlayerAdded" 이벤트를 "onPlayerAdded()" 함수에 연결
Players.PlayerAdded:Connect(onPlayerAdded)