在asp.net mvc中,asp:panel的替代方法是什么

时间:2019-07-02 09:20:25

标签: html asp.net asp.net-mvc

我想将其转换为asp:net面板到mvc。有什么办法可以转换 这是我的html代码:

public class Spawn : MonoBehaviour
{

  public GameObject Sphere;
  //string ScriptName = "BezierWalk";

  void Start()
  {  
      Vector3 vSpawnPos = transform.position;

      for (int i = 0; i < 20; i++)
        {
          var objectYouCreate = Instantiate(Sphere, vSpawnPos, transform.rotation);
          //objectYouCreate.AddComponent<T>("Assets/BezierWalk.cs");
          //objectYouCreate.AddComponent(typeof(ScriptName)) as ScriptName;
          //objectYouCreate.AddComponent<ScriptName>();
          //var myScript = Sphere.AddComponent<BezierWalk.cs>();
          vSpawnPos.z += 20;
        }       
   }

1 个答案:

答案 0 :(得分:0)

面板渲染为div。所以:

<div id="MessagePanel" class="Set" style="display: none;" />