HumanoidDescriptionクラス

クラス日本語解説は準備中

ひとことで言うと

HumanoidDescriptionは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Describes the appearance of a Humanoid character including body parts, accessories, colors, scales, animations, and emotes.

クラスの関係

受け継いでいるクラス:Object → Instance → HumanoidDescription

プロパティ(41)

名前と書き方説明
AccessoryBlob
HumanoidDescription.AccessoryBlob: string
A JSON formatted array of Layered clothing where each table in the entry in the array describes an accessory's AssetId, AccessoryType, Order, and (optionally) Puffiness as key-value pairs.
BackAccessory
HumanoidDescription.BackAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its back (such as capes).
BodyTypeScale
HumanoidDescription.BodyTypeScale: float
Determines the factor by which the shape of a Humanoid is interpolated from the standard R15 body shape (0) to a taller and more slender body type (1).
ClimbAnimation
HumanoidDescription.ClimbAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Climbing.
DepthScale
HumanoidDescription.DepthScale: float
Determines by what factor the depth (back-to-front distance) of a Humanoid is scaled.
Face
HumanoidDescription.Face: int64
Determines the asset ID of the Face to be applied to the Humanoid.
FaceAccessory
HumanoidDescription.FaceAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to the front of its face (such as glasses).
FallAnimation
HumanoidDescription.FallAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Freefall.
FrontAccessory
HumanoidDescription.FrontAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to front of its torso (such as medals or ties).
GraphicTShirt
HumanoidDescription.GraphicTShirt: int64
Determines the Class.ShirtGraphic.Graphic|Graphic used by a ShirtGraphic.
HairAccessory
HumanoidDescription.HairAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its head resembling hair.
HatAccessory
HumanoidDescription.HatAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its head.
HeadColor
HumanoidDescription.HeadColor: Color3
Determines the BodyColors.HeadColor3 and BodyColors.HeadColor of a Humanoid when Class.Humanoid:ApplyDescriptionAsync()|applied.
HeadScale
HumanoidDescription.HeadScale: float
Determines by what factor the **Head** object of a Humanoid is scaled, as well as any accessories attached to it.
HeightScale
HumanoidDescription.HeightScale: float
Determines by what factor the height (top-to-bottom distance) of a Humanoid is scaled, as well as all accessories not attached to its head.
IdleAnimation
HumanoidDescription.IdleAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Running at a speed near zero.
JumpAnimation
HumanoidDescription.JumpAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Jumping.
LeftArm
HumanoidDescription.LeftArm: int64
Determines the asset ID of the LeftArm to be applied to the Humanoid.
LeftArmColor
HumanoidDescription.LeftArmColor: Color3
Determines the BodyColors.LeftArmColor3 and BodyColors.LeftArmColor of a Humanoid when applied.
LeftLeg
HumanoidDescription.LeftLeg: int64
Determines the asset ID of the LeftLeg to be applied to the Humanoid.
LeftLegColor
HumanoidDescription.LeftLegColor: Color3
Determines the BodyColors.LeftLegColor3 and BodyColors.LeftLegColor of a Humanoid when applied.
MoodAnimation
HumanoidDescription.MoodAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the asset ID of the mood animation that gives the character's face its persistent expression.
NeckAccessory
HumanoidDescription.NeckAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its neck (such as scarves or necklaces).
Pants
HumanoidDescription.Pants: int64
Determines the Class.Pants.PantsTemplate|PantsTemplate used by a Pants instance.
ProportionScale
HumanoidDescription.ProportionScale: float
Determines how wide (0) or narrow (1) a Humanoid rig is.
RightArm
HumanoidDescription.RightArm: int64
Determines the asset ID of the RightArm to be applied to the Humanoid.
RightArmColor
HumanoidDescription.RightArmColor: Color3
Determines the BodyColors.RightArmColor3 and BodyColors.RightArmColor of a Humanoid when applied.
RightLeg
HumanoidDescription.RightLeg: int64
Determines the asset ID of the RightLeg to be applied to the Humanoid.
RightLegColor
HumanoidDescription.RightLegColor: Color3
Determines the BodyColors.RightLegColor3 and BodyColors.RightLegColor of a Humanoid when applied.
RunAnimation
HumanoidDescription.RunAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Running at a moderate speed.
Shirt
HumanoidDescription.Shirt: int64
Determines the Class.Shirt.ShirtTemplate|ShirtTemplate used by a Shirt instance.
ShouldersAccessory
HumanoidDescription.ShouldersAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its shoulders (such as shoulder-mounted critters).
StaticFacialAnimation
HumanoidDescription.StaticFacialAnimation: boolean
When true, disables facial animations on a Dynamic Head, displaying a static mood pose instead. Defaults to false.
SwimAnimation
HumanoidDescription.SwimAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Swimming.
Torso
HumanoidDescription.Torso: int64
Determines the asset ID of the Torso to be applied to the Humanoid.
TorsoColor
HumanoidDescription.TorsoColor: Color3
Determines the BodyColors.TorsoColor3 and BodyColors.TorsoColor of a Humanoid when applied.
UseAvatarSettings
HumanoidDescription.UseAvatarSettings: boolean
When true, applying this description also applies the experience's Avatar Settings to the resulting model. Defaults to false.
WaistAccessory
HumanoidDescription.WaistAccessory: string
A comma-separated list of asset IDs that will be added as Class.Accessory|Accessories to a Humanoid rig when Class.Humanoid:ApplyDescriptionAsync()|applied, usually those attached to its waist (such as belts).
WalkAnimation
HumanoidDescription.WalkAnimation: int64
When this description is Class.Humanoid:ApplyDescriptionAsync()|applied to a Humanoid, this determines the Animation.AnimationId to play when its Class.Humanoid:GetState()|state is Enum.HumanoidStateType|Running at a low speed.
WidthScale
HumanoidDescription.WidthScale: float
Determines by what factor the width (left-to-right distance) of a Humanoid is scaled, as well as all accessories not attached to its head.

メソッド(8)

名前と書き方説明
AddEmote
HumanoidDescription:AddEmote(name: string, assetId: int64): ()
Adds the emote to the description given a name and its asset ID.
GetAccessories
HumanoidDescription:GetAccessories(includeRigidAccessories: boolean): List<AccessoriesInfo>
Returns a table of an avatar's current accessories.
GetEmotes
HumanoidDescription:GetEmotes(): Dictionary
Returns a dictionary of emotes that have been Class.HumanoidDescription:AddEmote()|added or Class.HumanoidDescription:SetEmotes()|set to this description.
GetEquippedEmotes
HumanoidDescription:GetEquippedEmotes(): Array
Returns an array of tables describing the equipped emotes that have been Class.HumanoidDescription:SetEquippedEmotes()|set.
RemoveEmote
HumanoidDescription:RemoveEmote(name: string): ()
Removes any emotes that have been added under the given name.
SetAccessories
HumanoidDescription:SetAccessories(accessories: Array, includeRigidAccessories: boolean): ()
Accepts a table that sets the accessories and related properties for an avatar.
SetEmotes
HumanoidDescription:SetEmotes(emotes: Dictionary): ()
Sets all of the emotes on this description.
SetEquippedEmotes
HumanoidDescription:SetEquippedEmotes(equippedEmotes: Array): ()
Sets the currently equipped emotes given an array of emote names.

イベント(2)

名前と書き方説明
EmotesChanged
HumanoidDescription.EmotesChanged(newEmotes: Dictionary)
Fires when emotes are added, removed or set on this description.
EquippedEmotesChanged
HumanoidDescription.EquippedEmotesChanged(newEquippedEmotes: Array)
Fires when the equipped emotes are Class.HumanoidDescription:SetEquippedEmotes()|set on this description.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(HumanoidDescription)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む