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

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.

主站蜘蛛池模板: 晋江市| 南宫市| 汉中市| 高淳县| 广西| 芜湖县| 澳门| 会宁县| 庄河市| 广元市| 南充市| 四会市| 石台县| 白山市| 海兴县| 辽宁省| 红桥区| 保康县| 广宁县| 西峡县| 定西市| 邵东县| 东莞市| 贺兰县| 靖远县| 二连浩特市| 亳州市| 昭通市| 广平县| 同心县| 吉首市| 西华县| 安远县| 驻马店市| 井研县| 泗水县| 卢龙县| 新丰县| 开原市| 中西区| 天全县|