HomefieldOfView | SPi-V dev

Legend

  • required
  • not yet implemented

Navigation

user

<behavior>

Description

The behavior node is a container for one or more actions.

Syntax

<tour>
  <scene>
    <behavior id="behaviorID">
      <action ... />
      ...
    </behavior>
    ...
  </scene>
</tour>

Attributes

  • id
    Unique id to reference the behavior by.
  • enabled
    Enabled/disables the actions inside the behavior.
    true/false
  • object
    Refereces an object this behavior should be associated with.
    id of another node, or "_scene" for the currently active scene

Children

History

  • 14-Oct-05: Added enabled, object attributes
  • 20-Apr-04: Initial version

Re: <behavior>

I'll asume that blue text means that that atribute is required? Although here it isn't, it seems...
Coloring it black would make it more clear.

Re: <behavior>

Where is 'here'? The syntax example has an id.
The menu (on the right) has a legend for the colors.

Re: <behavior>

Exactly my point. But when used as a child node, its id is not required...

Re: <behavior>

Yes, it works without an id, because SPi-V will create a random id when it is not specified. But semantically, the id is required.

Re: <behavior>

This comment has been moved here.