跳到主要内容

GearBase

命名空间:FairyGUI
源码:Assets/Scripts/UI/Gears/GearBase.cs (行 8)

abstract public class GearBase

Gear is a connection between object and controller.

构造函数​

GearBase(GObject)​

public GearBase(GObject owner);
参数类型说明
ownerGObject

源码:UI/Gears/GearBase.cs (行 16)

字段​

_controller​

protected Controller _controller;

源码:UI/Gears/GearBase.cs (行 13)

_owner​

protected GObject _owner;

源码:UI/Gears/GearBase.cs (行 12)

_tweenConfig​

protected GearTweenConfig _tweenConfig;

源码:UI/Gears/GearBase.cs (行 14)

disableAllTweenEffect​

public static bool disableAllTweenEffect;

源码:UI/Gears/GearBase.cs (行 10)

方法​

AddStatus(string, ByteBuffer)​

abstract protected void AddStatus(string pageId, ByteBuffer buffer);
参数类型说明
pageIdstring
bufferByteBuffer

源码:UI/Gears/GearBase.cs (行 151)

Apply()​

abstract public void Apply();

Call when controller active page changed.

源码:UI/Gears/GearBase.cs (行 157)

Dispose()​

public void Dispose();

源码:UI/Gears/GearBase.cs (行 21)

Init()​

abstract protected void Init();

源码:UI/Gears/GearBase.cs (行 152)

Setup(ByteBuffer)​

public void Setup(ByteBuffer buffer);
参数类型说明
bufferByteBuffer

源码:UI/Gears/GearBase.cs (行 61)

UpdateFromRelations(float, float)​

virtual public void UpdateFromRelations(float dx, float dy);
参数类型说明
dxfloat
dyfloat

源码:UI/Gears/GearBase.cs (行 147)

UpdateState()​

abstract public void UpdateState();

Call when object's properties changed.

源码:UI/Gears/GearBase.cs (行 162)

属性​

controller​

public Controller controller { get; set; }

Controller object.

源码:UI/Gears/GearBase.cs (行 33)

tweenConfig​

public GearTweenConfig tweenConfig { get; }

源码:UI/Gears/GearBase.cs (行 51)