控制器编辑

    Blender controllers can be set up and edited in the central column of the Logic Panel.This page describes the general column controls,those parameters which are common to all individual controller types,and how different states for the objects in the logic system can be set up and edited.

    The image shows a typical controller column with a single controller.At the top of this column, and for sensors and actuators, the column heading includes menusand buttons to control which of all the controllers in the current Game Logic are displayed.

    Controller Column headings.

    • Show Objects
    • Expands all objects.
    • Hide Objects
    • Collapses all objects to just a bar with their name.
    • Show Controllers
    • Expands all Controllers.
    • Hide Controllers
    • Sel

    • Shows all controllers for selected objects.
    • Act
    • Shows only controllers belonging to the active object.
    • Link
    • Shows controllers which have a link to actuators/sensors.

    ../../../_images/game-engine_logic_controllers_editing_column2.png

    In the column list, controllers are grouped by object. By default,controllers for every selected object appear in the list,but this may be modified by the column heading filters.

    • At the head of each displayed object controller list, three entries appear:
    • Used States Button Shows which states are in use for the object.Detailed description of the marked panel is given in .
    • Name
    • The name of the object.
    • Add Controller

    The controller heading is standard to every controller.

    • Controller Type menu
    • Specifies the type of the controller.
    • Controller Name
    • The name of the controller. This can be selected by the user.It is used to access controllers with Python; it needs to be unique among the selected objects.
    • State Index
    • Sets the designated state for which this controller will operate.
    • Preference Button
    • If on, this controller will operate before all other non-preference controllers (useful for start-up scripts).
    • Active Checkbox
    • When unchecked the controller is deactivated, no pulses will be sent to the connect actuators.
    • Button