Mouseクラス
ひとことで言うと
Mouseは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Legacy object that contains members useful for pointer input.
クラスの関係
受け継いでいるクラス:Object → Instance → Mouse
このクラスを受け継ぐクラス:PlayerMouse、PluginMouse
プロパティ(12)
| 名前と書き方 | 説明 |
|---|---|
HitMouse.Hit: CFrame | The CFrame of the mouse's position in 3D space. |
IconMouse.Icon: ContentId | The content ID of the image used as the Mouse icon. |
IconContentMouse.IconContent: Content | The content of the image used as the Mouse icon. Only supports asset URIs. |
OriginMouse.Origin: CFrame | A CFrame positioned at the Workspace.CurrentCamera and oriented toward the mouse's 3D position. |
TargetMouse.Target: BasePart | The object in 3D space the Class.Mouse|mouse is pointing to. |
TargetFilterMouse.TargetFilter: Instance | Determines an object (and its descendants) to be ignored when determining Mouse.Hit and Mouse.Target. |
TargetSurfaceMouse.TargetSurface: NormalId | Indicates the NormalId of the BasePart surface at which the mouse is pointing. |
UnitRayMouse.UnitRay: Ray | A Ray directed towards the mouse's world position, originating from the Workspace.CurrentCamera world position. |
ViewSizeXMouse.ViewSizeX: int | Describes the width of the game window in pixels. |
ViewSizeYMouse.ViewSizeY: int | Describes the height of the game window in pixels. |
XMouse.X: int | Describes the X (horizontal) component of the mouse's position on the screen. |
YMouse.Y: int | Describes the Y (vertical) component of the mouse's screen position. |
イベント(8)
| 名前と書き方 | 説明 |
|---|---|
Button1DownMouse.Button1Down() | Fires when the left mouse button is pressed. |
Button1UpMouse.Button1Up() | Fires when the left mouse button is released. |
Button2DownMouse.Button2Down() | Fires when the right mouse button is pressed. |
Button2UpMouse.Button2Up() | Fired when the right mouse button is released. |
IdleMouse.Idle() | Fired during every heartbeat that the mouse isn't being passed to another mouse event. |
MoveMouse.Move() | Fired when the mouse is moved. |
WheelBackwardMouse.WheelBackward() | Fires when the mouse wheel is scrolled backwards. |
WheelForwardMouse.WheelForward() | Fires when the mouse wheel is scrolled forwards. |
受け継いでいるメンバー
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(Mouse)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。