依次加载每一个ifc构件

依次加载每一个ifc构件

 

#region
/// <summary>
/// Loads the buildingStorey components.
/// </summary>
/// 依次加载每一个构件
/// <returns>The building components2.</returns>
IEnumerator LoadBuildingStoreyComponents()
{
    int childCount = this.transform.childCount;
    for (int k = 0; k < childCount; k++)
    {
        Transform indexTransformObj = this.transform.GetChild(k);


        indexTransformObj.gameObject.SetActive(true);
        
        yield return new WaitForSeconds(0.8f);
    }

}
#endregion

 

调用

StartCoroutine(LoadBuildingStoreyComponents());

 

#####################

上一篇:ifc扩展方式


下一篇:IfcReinforcingBarRoleEnum ifc 钢筋枚举