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

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.

主站蜘蛛池模板: 屯留县| 古田县| 藁城市| 新平| 汝城县| 太保市| 鄂尔多斯市| 东乌| 盖州市| 桂阳县| 哈尔滨市| 金昌市| 承德市| 辉南县| 荥阳市| 信阳市| 福建省| 监利县| 达拉特旗| 行唐县| 杂多县| 周口市| 依安县| 曲麻莱县| 灌阳县| 崇州市| 怀宁县| 沙湾县| 南川市| 五原县| 民县| 宁城县| 长垣县| 锡林郭勒盟| 江孜县| 于都县| 大竹县| 塔城市| 永吉县| 甘孜县| 宜城市|