[UE4]组件

用来组成Actor的子对象,Actor是由组件组成的。

 几个关键的Component类型:

一、UActorComponent

  这个Component的基类,可以被放到Actor里面, 可以接受Tick事件(每隔一帧调用一次)。

  UActorComponent本身是没有3D变化(位置、缩放、朝向)数据的,也就是对位置、缩放、朝向不关心。

二、UsceneComponent

  带有3D变化(位置、缩放、朝向)的ActorComponent。

  UsceneComponent能够形成一定的成绩结构。Actor的位置、缩放、朝向取决于作为根组件Root的UsceneComponent。

  Actor的根组件必须是UsceneComponent,UsceneComponent是有3D变化(位置、缩放、朝向)数据的。

三、UPrimitiveComponent

  UPrimitiveComponent是带有图形(比如网格mesh或者particle system粒子)表现的UsceneComponent。

原文地址:https://www.cnblogs.com/timy/p/9005596.html