# Path2D(ロブロックス クラス) > Represents a 2D cubic spline path that renders a stroked curve under any GuiObject. - URL:https://roblox.minecraft-okinawa.com/reference/classes/Path2D/ - 公式:https://create.roblox.com/docs/reference/engine/classes/Path2D - 受け継いでいるクラス:GuiBase ## プロパティ - `Path2D.Closed: boolean`:Connects the first and last control points when enabled. - `Path2D.Color3: Color3`:Determines the color of the Path2D. - `Path2D.Thickness: float`:Determines how thick the Path2D path is. - `Path2D.Visible: boolean`:Determines if the Path2D path is rendered or not. - `Path2D.ZIndex: int`:Determines the order in which a Path2D path renders relative to other GUIs. ## メソッド - `Path2D:GetBoundingRect(): Rect`:Returns the bounding size for the Path2D. - `Path2D:GetControlPoint(index: int): Path2DControlPoint`:Returns the Path2DControlPoint for a given index. - `Path2D:GetControlPoints(): Array`:Returns all the Datatype.Path2DControlPoint|Path2DControlPoints for the Path2D. - `Path2D:GetLength(): float`:Returns the length of the Path2D. - `Path2D:GetMaxControlPoints(): int`:Returns the maximum allowed number of control points. - `Path2D:GetPositionOnCurve(t: float): UDim2`:Returns the position at a given value in parameter space. - `Path2D:GetPositionOnCurveArcLength(t: float): UDim2`:Returns the position at a given value in arc length space. - `Path2D:GetTangentOnCurve(t: float): Vector2`:Returns the tangent at a given value in parameter space. - `Path2D:GetTangentOnCurveArcLength(t: float): Vector2`:Returns the tangent at a given value in arc length space. - `Path2D:InsertControlPoint(index: int, point: Path2DControlPoint): ()`:Inserts a new control point at a given index. - `Path2D:RemoveControlPoint(index: int): ()`:Removes a control at the given index. - `Path2D:SetControlPoints(controlPoints: Array): ()`:Sets all the control points to the specified array, replacing all existing points with new ones. - `Path2D:UpdateControlPoint(index: int, point: Path2DControlPoint): ()`:Updates a control point at the given index. ## イベント - `Path2D.ControlPointChanged()`:Fires any time control points change. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)