PoBDSDocs
简体中文v1.0.0
POBDS / 08

Actor properties, methods and character capabilities

Expose stable C# capabilities once, then select and compose them in the editor.

Choose an Actor base

PoBDSActor supplies the base blueprint interface. PoBDSCharacterActor adds integer movement, health, stamina, targeting, teams and basic combat. PoBDSCharacterComponent connects the character, Unity object, Agent and fixed-step updates.

CategoryBuilt-in examples
TransformPosition, integer XYZ millimeters, teleport and facing
VitalsHealth, maximum health, health permille, armor, damage, healing, revive and stamina
MovementSpeed, movement permission and arrived / blocked / disabled results
Perception / TargetSearch radius, nearest enemy, Actor reference, distance and visibility callback
Combat / TagsAttack range, damage, interval, counters and character tags

Start from a typed Actor reference

  1. Get the Actor

    Use Self Actor, Target Actor or an Actor variable. An Actor reference is not a HasTarget boolean.

  2. Discover members

    Search from the Actor output or connect it to a property node. The inspector should identify the connected source.

  3. Choose a property or method

    Use the categorized selector instead of guessing a method name string. Bind method arguments on the invocation Action.

  4. Perform calculations

    Position returns Vector3. Enable component splitting for XYZ outputs; use integer millimeter coordinates or distance for integer simulation rules.

Typed outputs and component splitting: vectors expose XYZ, colors expose RGBA. Each component retains its own scalar type. · Click to view full image

Expose a game-specific member

C#
using System;
using PoBDS.Runtime;

[Serializable, PoBDSActorAttr("Guard", Group = "Game/Guard")]
public class GuardActor : PoBDSCharacterActor
{
    [PoBDSProp("Ammo", Group = "Game/Combat")]
    public int Ammo { get; set; } = 30;

    [PoBDSMethod("Reload", Group = "Game/Combat")]
    public void Reload() { Ammo = 30; }
}

Compile and refresh the member list. Use your own Actions or virtual hooks for game-specific animation, navigation, network damage and weapons. Those rules belong to the host project.

Use reflection deliberately

Discover and categorize members in the editor or at initialization. Cache resolved accessors for repeated runtime use; do not scan assemblies or look up MethodInfo every Update. Account for reflection-member preservation in IL2CPP builds.

Combine keywords with / · Enter opens first result · Esc closes