利用者:Sculptorjim/Game Engine/Logic/Properties/Editing

提供: wiki
< 利用者:Sculptorjim‎ | Game Engine‎ | Logic‎ | Properties
2018年6月29日 (金) 05:50時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Property Editing

Logic Properties are created and edited using the panel on the left of the Logic Editor Panel. The top menu provides a list of the available property types.


Property Panel
Add Property button
This button adds a new property to the list, default is a Float property named “prop”, followed by a number if there already is one with this name.
Name field
Where you give your property its name, this is how you are going to access it through python or expressions. The way to do so in python is by dictionary style lookup (GameObject["propname"]). The name is case sensitive.
Type menu
This menu determines which type of property it is (see below).
Value field
Sets the initial value of the property.
I information button
Display property value in debug information. If debugging is turned on, the value of the property is given in the top left-hand corner of the screen while the game is run. To turn debugging on, tick Show Debug Properties in the Game menu. All properties with debugging activated will then be presented with their object name, property name and value during gameplay. This is useful if you suspect something with your properties is causing problems.
X
Delete property.