public getDefinedProperty ( string name ) : object | ||
name | string | |
return | object |
KBEngine.Entity player = ...; int health = player.getDefinedProperty("health");
KBEngine.Entity gameObject = ...; string name = gameObject.getDefinedPropertyIn this example, we have a game object entity and we want to retrieve its name property, which is of type string. We pass the name of the property ("name") as a string argument to the getDefinedProperty method, along with the type we expect to receive (string). Package Library: KBEngine.Unity.Client Overall, the KBEngine Entity getDefinedProperty method is a useful tool for retrieving the current values of an entity's defined properties. It can be used in a variety of different scenarios to access entity data and perform game logic.("name");