(转载)虚幻引擎3--【UnrealScript教程】章节一:17.可在引擎中编辑的默认属性

var() 数据类型 变量名;
var(XXX) 修改这个类别
class MyUSGame extends actor
placeable;

var() int i;
var (physics) int p;
var (Display) float d;

function PostBeginPlay()
{

}

defaultproperties
{
i=100;





如图出现了在脚本里所定义的变量和值

主要用来改颜色,亮度等,方便关卡设计。
 
 
原文地址:https://www.cnblogs.com/wodehao0808/p/6104764.html