其他分享
首页 > 其他分享> > 依次加载每一个ifc构件

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

 

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

标签:int,transform,indexTransformObj,ifc,构件,childCount,加载
来源: https://www.cnblogs.com/herd/p/14894461.html