依次加载每一个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());

 

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

posted @ 2021-06-17 17:20  西北逍遥  阅读(56)  评论(0编辑  收藏  举报