Summary
Moves a
UnityEngine.Rigidbody2D along a straight path.- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
- Base Types
-
- MonoBehaviour
graph BT
Type-->Base0["MonoBehaviour"]
Type["MovingObject2D"]
class Type type-node
Syntax
[AddComponentMenu(Strings.MenuPrefix + "Moving Object 2D")]
[PlatformerHelpUrl(typeof(MovingObject2D))]
[DefaultExecutionOrder(DefaultExecutionOrder)]
public class MovingObject2D : MonoBehaviour
Remarks
Documentation:
Moving Platforms
Attributes
| Type | Description |
|---|---|
| AddComponentMenu | |
| Platformer |
[Assert-Conditional]
A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.
|
| Default |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Default |
-10000 |
Update before anything else.
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| Awake |
void | |
| FixedUpdate |
void | |
| OnValidate |
void |
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.
|