官术网_书友最值得收藏!

Variable properties

Now we know what different types of variables are available to us and how to work with them. There are a few different variable properties that we need to know about to be able to use them to their fullest, first up, default properties.

Default properties

We know how to change a variable's value in our PostBeginPlay function, and that integers for example start out at 0 by default. But is there a better way to set an initial value? We've used it before, so you may have guessed that the default properties block at the end of our class is where we do this. Let's take a look at an example.

主站蜘蛛池模板: 文山县| 凯里市| 壶关县| 株洲县| 和田市| 广丰县| 布尔津县| 随州市| 偏关县| 克东县| 黄大仙区| 武陟县| 汝州市| 淮阳县| 万盛区| 德州市| 日喀则市| 大渡口区| 辽阳县| 巢湖市| 呼伦贝尔市| 偃师市| 南江县| 阜城县| 来安县| 三河市| 修文县| 楚雄市| 普格县| 鲁山县| 咸丰县| 和硕县| 曲阳县| 竹山县| 西乌珠穆沁旗| 天镇县| 甘洛县| 荔波县| 鲁山县| 汉寿县| 那坡县|