Plush

PlushEngine C# API reference#

API home · First script · Gameplay guides · All types

Use using PlushEngine; in project gameplay scripts. APIs operate on live runtime instances; they do not modify authored project data. Add a class derived from Script as an object component.

Core types#

TypePurpose
ScriptBase class; lifecycle callbacks; owning Entity and Scene
RuntimeEntityComponent lookup, transforms, activity, movement, lifetime, sockets and body control
RuntimeSceneFind/spawn/destroy objects, query physics, time, input, effects and scene loading
SceneNavigation, NavigationAgentQuery baked 3D routes through Scene.Navigation and follow them with a character; see Navigation
GameSessionIn-memory values shared across scene changes
DataBlock, DataReference<T>, DataCatalogProject-defined shared settings; choose in the Inspector and resolve through Scene.Data.Get
DataRecordInline immutable records within shared definitions, including list items

Input and time#

TypePurpose
InputActionsScene-owned named controls; access through Scene.Input
GameKey, GamepadAxisKeys, mouse and gamepad buttons, and stick axes to bind actions to
SceneTimers, TimerHandleScheduled callbacks and cancellation
SceneCoroutines, CoroutineHandle, WaitCooperative scene-owned sequences
TimeClock, Tweens, Ease, LifetimeClock selection, interpolation and timed destruction

Physics and animation#

TypePurpose
CharacterControllerCapsule movement and jump intent
RagdollAnimated/dynamic body handoff
Contact, CollisionLayers3D contact events and named query masks
Motion2D, Contact2DSwept 2D movement and contacts
RigidBody2D, WheelJoint2D, PhysicsSettings2D2D rigid-body simulation
AnimationPlaybackClips, blends, layers, sockets and motion matching; access through Entity.Animation
MotionWarpWarp a sampled motion trajectory toward a target

References and values#

TypePurpose
AssemblyReferenceAuthored object template for spawning
SceneReferenceAuthored reference to a placed object
AnimationClipReferenceController clip slot
EffectReferenceAuthored effect
SoundReference, NoteAuthored sound and the note to play it at (Scene.PlaySound)
SoundVoiceA playing sound: volume, pitch, move, stop, wait
Transform, Transform2DImmutable spatial/planar poses; replace a property with an updated value
SceneLibrary, LibraryItemRuntime library lookup
ScriptFaultReported callback failure

The alphabetical type index includes every public PlushEngine type declared in the runtime, including supporting asset descriptions and lower-level host types. Type pages list actual source declarations, public property access, overloads, defaults and source documentation. Follow base-type links for inherited members. Record constructor parameters also declare properties.

Runtime rules#

Lifecycle · Ownership and spawning · Errors