HumanoidDescriptionクラス
ひとことで言うと
HumanoidDescriptionは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Describes the appearance of a Humanoid character including body parts, accessories, colors, scales, animations, and emotes.
クラスの関係
プロパティ(41)
| 名前と書き方 | 説明 |
|---|---|
AccessoryBlobHumanoidDescription.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. |
BackAccessoryHumanoidDescription.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). |
BodyTypeScaleHumanoidDescription.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). |
ClimbAnimationHumanoidDescription.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. |
DepthScaleHumanoidDescription.DepthScale: float | Determines by what factor the depth (back-to-front distance) of a Humanoid is scaled. |
FaceHumanoidDescription.Face: int64 | Determines the asset ID of the Face to be applied to the Humanoid. |
FaceAccessoryHumanoidDescription.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). |
FallAnimationHumanoidDescription.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. |
FrontAccessoryHumanoidDescription.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). |
GraphicTShirtHumanoidDescription.GraphicTShirt: int64 | Determines the Class.ShirtGraphic.Graphic|Graphic used by a ShirtGraphic. |
HairAccessoryHumanoidDescription.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. |
HatAccessoryHumanoidDescription.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. |
HeadHumanoidDescription.Head: int64 | Determines the asset ID of the Head to be applied to the Humanoid. |
HeadColorHumanoidDescription.HeadColor: Color3 | Determines the BodyColors.HeadColor3 and BodyColors.HeadColor of a Humanoid when Class.Humanoid:ApplyDescriptionAsync()|applied. |
HeadScaleHumanoidDescription.HeadScale: float | Determines by what factor the **Head** object of a Humanoid is scaled, as well as any accessories attached to it. |
HeightScaleHumanoidDescription.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. |
IdleAnimationHumanoidDescription.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. |
JumpAnimationHumanoidDescription.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. |
LeftArmHumanoidDescription.LeftArm: int64 | Determines the asset ID of the LeftArm to be applied to the Humanoid. |
LeftArmColorHumanoidDescription.LeftArmColor: Color3 | Determines the BodyColors.LeftArmColor3 and BodyColors.LeftArmColor of a Humanoid when applied. |
LeftLegHumanoidDescription.LeftLeg: int64 | Determines the asset ID of the LeftLeg to be applied to the Humanoid. |
LeftLegColorHumanoidDescription.LeftLegColor: Color3 | Determines the BodyColors.LeftLegColor3 and BodyColors.LeftLegColor of a Humanoid when applied. |
MoodAnimationHumanoidDescription.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. |
NeckAccessoryHumanoidDescription.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). |
PantsHumanoidDescription.Pants: int64 | Determines the Class.Pants.PantsTemplate|PantsTemplate used by a Pants instance. |
ProportionScaleHumanoidDescription.ProportionScale: float | Determines how wide (0) or narrow (1) a Humanoid rig is. |
RightArmHumanoidDescription.RightArm: int64 | Determines the asset ID of the RightArm to be applied to the Humanoid. |
RightArmColorHumanoidDescription.RightArmColor: Color3 | Determines the BodyColors.RightArmColor3 and BodyColors.RightArmColor of a Humanoid when applied. |
RightLegHumanoidDescription.RightLeg: int64 | Determines the asset ID of the RightLeg to be applied to the Humanoid. |
RightLegColorHumanoidDescription.RightLegColor: Color3 | Determines the BodyColors.RightLegColor3 and BodyColors.RightLegColor of a Humanoid when applied. |
RunAnimationHumanoidDescription.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. |
ShirtHumanoidDescription.Shirt: int64 | Determines the Class.Shirt.ShirtTemplate|ShirtTemplate used by a Shirt instance. |
ShouldersAccessoryHumanoidDescription.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). |
StaticFacialAnimationHumanoidDescription.StaticFacialAnimation: boolean | When true, disables facial animations on a Dynamic Head, displaying a static mood pose instead. Defaults to false. |
SwimAnimationHumanoidDescription.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. |
TorsoHumanoidDescription.Torso: int64 | Determines the asset ID of the Torso to be applied to the Humanoid. |
TorsoColorHumanoidDescription.TorsoColor: Color3 | Determines the BodyColors.TorsoColor3 and BodyColors.TorsoColor of a Humanoid when applied. |
UseAvatarSettingsHumanoidDescription.UseAvatarSettings: boolean | When true, applying this description also applies the experience's Avatar Settings to the resulting model. Defaults to false. |
WaistAccessoryHumanoidDescription.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). |
WalkAnimationHumanoidDescription.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. |
WidthScaleHumanoidDescription.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)
| 名前と書き方 | 説明 |
|---|---|
AddEmoteHumanoidDescription:AddEmote(name: string, assetId: int64): () | Adds the emote to the description given a name and its asset ID. |
GetAccessoriesHumanoidDescription:GetAccessories(includeRigidAccessories: boolean): List<AccessoriesInfo> | Returns a table of an avatar's current accessories. |
GetEmotesHumanoidDescription:GetEmotes(): Dictionary | Returns a dictionary of emotes that have been Class.HumanoidDescription:AddEmote()|added or Class.HumanoidDescription:SetEmotes()|set to this description. |
GetEquippedEmotesHumanoidDescription:GetEquippedEmotes(): Array | Returns an array of tables describing the equipped emotes that have been Class.HumanoidDescription:SetEquippedEmotes()|set. |
RemoveEmoteHumanoidDescription:RemoveEmote(name: string): () | Removes any emotes that have been added under the given name. |
SetAccessoriesHumanoidDescription:SetAccessories(accessories: Array, includeRigidAccessories: boolean): () | Accepts a table that sets the accessories and related properties for an avatar. |
SetEmotesHumanoidDescription:SetEmotes(emotes: Dictionary): () | Sets all of the emotes on this description. |
SetEquippedEmotesHumanoidDescription:SetEquippedEmotes(equippedEmotes: Array): () | Sets the currently equipped emotes given an array of emote names. |
イベント(2)
| 名前と書き方 | 説明 |
|---|---|
EmotesChangedHumanoidDescription.EmotesChanged(newEmotes: Dictionary) | Fires when emotes are added, removed or set on this description. |
EquippedEmotesChangedHumanoidDescription.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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(HumanoidDescription)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。