Foundation spawns invisible by 1/2
im spawning in a stone foundation but it seems to only spawn in the top layer the side walls are missing untell i attach another foundation to it..
am i missing somthing?

            BuildingBlock block = (BuildingBlock)GameManager.server.CreateEntity("assets/prefabs/building core/foundation/foundation.prefab");
            if (block == null) return;
            block.transform.position = player.transform.position;
            block.transform.rotation = player.transform.rotation;
            block.gameObject.SetActive(true);
            block.grounded = true;
            block.blockDefinition = PrefabAttribute.server.Find<Construction>(block.prefabID);
            block.Spawn();
            block.SetGrade(BuildingGrade.Enum.Stone);
            block.SetHealthToMax();
            block.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
            SpawnRefresh(block);
            block.SendNetworkUpdateImmediate();​

Maybe you will:

  1. Open Copy-Paste and inspect code there
  2. Open wall class (BuildingBlock as i remember) and check definition and all variables?
Been there done that.
Check BuildingManager.cs.

Just a guess, but maybe your spawned entity is just a BuildingBlock and it's not becoming part of a BuildingManager.Building until you add that extra foundation.
ya im asuming so for now i spawned a temp foundation and remove it to fix the issue.  i am adding an id to BuildingManage on spawn but that did not fix it also,