StarterPlayerクラス
ひとことで言うと
プレイヤーのキャラクターの初期設定(歩く速さ・ジャンプ・カメラなど)と、プレイヤーに配るスクリプトの置き場所を管理するサービスです。
公式の説明(英語):A service which allows the defaults of properties in the Player object to be set.
クラスの関係
プロパティ(25)
| 名前と書き方 | 説明 |
|---|---|
AutoJumpEnabledStarterPlayer.AutoJumpEnabled: boolean | Sets whether the character will automatically jump when hitting an obstacle on a mobile device. |
CameraMaxZoomDistanceStarterPlayer.CameraMaxZoomDistance: float | The maximum distance the player's default camera is allowed to zoom out in studs. |
CameraMinZoomDistanceStarterPlayer.CameraMinZoomDistance: float | The minimum distance in studs the player's default camera is allowed to zoom in. |
CameraModeStarterPlayer.CameraMode: CameraMode | Changes the default camera's mode to either first or third person. |
CharacterBreakJointsOnDeathStarterPlayer.CharacterBreakJointsOnDeath: boolean | Determines the starting value of Humanoid.BreakJointsOnDeath for Player.Character. |
CharacterJumpHeightStarterPlayer.CharacterJumpHeight: float | Determines the starting value of Humanoid.JumpHeight for Player.Character. |
CharacterJumpPowerStarterPlayer.CharacterJumpPower: float | Determines the starting value of Humanoid.JumpPower for Player.Character. |
CharacterMaxSlopeAngleStarterPlayer.CharacterMaxSlopeAngle: float | Determines the starting value of Humanoid.MaxSlopeAngle for Player.Character. |
CharacterUseJumpPowerStarterPlayer.CharacterUseJumpPower: boolean | Determines the starting state of Humanoid.UseJumpPower for Player.Character. |
CharacterWalkSpeedStarterPlayer.CharacterWalkSpeed: float | Determines the starting value of Humanoid.WalkSpeed for Player.Character. |
ClassicDeathStarterPlayer.ClassicDeath: boolean | Controls whether the character uses the classic death behavior when the Humanoid's health reaches zero. |
CreateDefaultPlayerModuleStarterPlayer.CreateDefaultPlayerModule: boolean | Controls how the default player module and related scripts are handled. |
DevCameraOcclusionModeStarterPlayer.DevCameraOcclusionMode: DevCameraOcclusionMode | Sets how the default camera handles objects between the camera and the player. |
DevComputerCameraMovementModeStarterPlayer.DevComputerCameraMovementMode: DevComputerCameraMovementMode | Lets you overwrite the player's camera mode on a computer. |
DevComputerMovementModeStarterPlayer.DevComputerMovementMode: DevComputerMovementMode | Lets you overwrite the player's movement mode on a computer. |
DevTouchCameraMovementModeStarterPlayer.DevTouchCameraMovementMode: DevTouchCameraMovementMode | Lets you overwrite the player's camera mode on a touch-enabled device. |
DevTouchMovementModeStarterPlayer.DevTouchMovementMode: DevTouchMovementMode | Lets you overwrite the player's movement mode on a touch-enabled device. |
EnableDynamicHeadsStarterPlayer.EnableDynamicHeads: LoadDynamicHeads | Sets the use of dynamic heads. When true, enables the use of avatar heads with facial animation data. |
EnableMouseLockOptionStarterPlayer.EnableMouseLockOption: boolean | Determines if a player can toggle mouse lock by default. |
HealthDisplayDistanceStarterPlayer.HealthDisplayDistance: float | Sets the distance at which this player will see other Humanoid health bars. If set to 0, the health bars will not be displayed. |
LoadCharacterAppearanceStarterPlayer.LoadCharacterAppearance: boolean | Whether or not the appearance of a player's character should be loaded. |
LoadCharacterLayeredClothing StarterPlayer.LoadCharacterLayeredClothing : LoadCharacterLayeredClothing | Indicates whether characters spawning into an experience will have layered clothing accessories equipped on them. |
LuaCharacterControllerStarterPlayer.LuaCharacterController: CharacterControlMode | Sets the character controller mode used by the player's character. |
NameDisplayDistanceStarterPlayer.NameDisplayDistance: float | Sets the distance at which this player will see other Humanoid names. |
UserEmotesEnabledStarterPlayer.UserEmotesEnabled: boolean | Determines if user-owned emotes are loaded when loading avatars. |
受け継いでいるメンバー
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)
StarterPlayerを使う記事
英語の説明とメンバーの一覧は、Roblox Creator Documentation(StarterPlayer)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。