rawDisplayDatas
{
get { return this._rawDisplayDatas; }
set
{
if (this._rawDisplayDatas == value)
{
return;
}
this._displayDirty = true;
this._rawDisplayDatas = value;
if (this._rawDisplayDatas != null)
{
this._displayDatas.ResizeList(this._rawDisplayDatas.Count);
for (int i = 0, l = this._displayDatas.Count; i < l; ++i)
{
var rawDisplayData = this._rawDisplayDatas[i];
if (rawDisplayData == null)
{
rawDisplayData = this._GetDefaultRawDisplayData(i);
}
this._displayDatas[i] = rawDisplayData;
}
}
else
{
this._displayDatas.Clear();
}
}
}
///
/// - The custom bounding box data for the slot at current time.
///
/// DragonBones 5.0
/// en_US
///
/// - 插槽此时的自定义包围盒数据。
///
/// DragonBones 5.0
/// zh_CN
public BoundingBoxData boundingBoxData
{
get { return this._boundingBoxData; }
}
///
public object rawDisplay
{
get { return this._rawDisplay; }
}
///
public object meshDisplay
{
get { return this._meshDisplay; }
}
///
/// - The display object that the slot displays at this time.
///
///
/// TypeScript style, for reference only.
///
/// let slot = armature.getSlot("text");
/// slot.display = new yourEngine.TextField();
///
///
/// DragonBones 3.0
/// en_US
///
/// - 插槽此时显示的显示对象。
///
///
/// TypeScript 风格,仅供参考。
///
/// let slot = armature.getSlot("text");
/// slot.display = new yourEngine.TextField();
///
///
/// DragonBones 3.0
/// zh_CN
public object display
{
get { return this._display; }
set
{
if (this._display == value)
{
return;
}
var displayListLength = this._displayList.Count;
if (this._displayIndex < 0 && displayListLength == 0)
{
// Emprty.
this._displayIndex = 0;
}
if (this._displayIndex < 0)
{
return;
}
else
{
var replaceDisplayList = this.displayList; // Copy.
if (displayListLength <= this._displayIndex)
{
replaceDisplayList.ResizeList(this._displayIndex + 1);
}
replaceDisplayList[this._displayIndex] = value;
this.displayList = replaceDisplayList;
}
}
}
///
/// - The child armature that the slot displayed at current time.
///
///
/// TypeScript style, for reference only.
///
/// let slot = armature.getSlot("weapon");
/// let prevChildArmature = slot.childArmature;
/// if (prevChildArmature) {
/// prevChildArmature.dispose();
/// }
/// slot.childArmature = factory.buildArmature("weapon_blabla", "weapon_blabla_project");
///
///
/// DragonBones 3.0
/// en_US
///
/// - 插槽此时显示的子骨架。
/// 注意,被替换的对象并不会被回收,根据语言和引擎的不同,需要额外处理。
///
///
/// TypeScript 风格,仅供参考。
///
/// let slot = armature.getSlot("weapon");
/// let prevChildArmature = slot.childArmature;
/// if (prevChildArmature) {
/// prevChildArmature.dispose();
/// }
/// slot.childArmature = factory.buildArmature("weapon_blabla", "weapon_blabla_project");
///
///
/// DragonBones 3.0
/// zh_CN
public Armature childArmature
{
get { return this._childArmature; }
set
{
if (this._childArmature == value)
{
return;
}
this.display = value;
}
}
///
/// - The parent bone to which it belongs.
///
/// DragonBones 3.0
/// en_US
///
/// - 所属的父骨骼。
///
/// DragonBones 3.0
/// zh_CN
public Bone parent
{
get { return this._parent; }
}
}
}