3D Lingo Dictionary > C-D > directionalPreset |  |

directionalPreset

Syntax

    member(whichCastmember).directionalPreset

Description

3D cast member property; indicates the direction from which the default directional light shines, relative to the camera of the sprite.

Changing the value of this property results in changes to the `position` and `rotation` properties of the light's transform.

Possible values of `directionalPreset` include the following:

| `#topLeft`
| `#topCenter`
| `#topRight`
| `#middleLeft`
| `#middleCenter`
| `#middleRight`
| `#bottomLeft`
| `#bottomCenter`
| `#bottomRight`
| `#None`

The default value of this property is `#topCenter`.

Example

This statement sets the `directionalPreset` property of the cast member named Room to `#middleCenter`. This points the default light of Room so it will shine on the middle center the current view of the camera of the sprite. This property can also be set in the Property Inspector.

    member("Room").directionalpreset = #middleCenter

See also

`directionalColor`