unity3d 虚拟现实在操作过程中是否需要使用控件呢?答案是肯定的。那么关于unity3d 虚拟现实的控件使用方法您又是否了解呢?不了解也没关系,现在就跟小编一起来详细的看看unity3d 虚拟现实的控件使用方法吧。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<aspinkButton ID="LinkButton1" runat="server">first</aspinkButton>
<aspinkButton ID="LinkButton2" runat="server">second</asp:LinkButton>
<asp:LinkButton ID="LinkButton3" runat="server">third</asp:LinkButton>
<br />
<hr />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex = 1>
<asp:View ID="View1" runat="server">
this is the first page
</asp:View>
<asp:View ID="View2" runat="server">
this is the second page
</asp:View>
<asp:View ID="View3" runat="server">
this is the third page
</asp:View>
</asp:MultiView>
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
this.MultiView1.ActiveViewIndex = 0;
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
this.MultiView1.ActiveViewIndex = 1;
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
this.MultiView1.ActiveViewIndex = 2;
}
}
View Code
//引用Access文本数据的类
using System.Data.OleDb;
/// <summary>
/// DBConnection 的摘要说明
/// </summary>
public class DBConnection
{
OleDbConnection con = null;
public DBConnection()
{
con = new OleDbConnection("rovider=Microsoft.Jet.OLEDB.4.0; Data Source=E:\\northwind.mdb;");
}
public OleDbConnection Con
{
get { return con; }
set { con = value; }
}
}
/// <summary>
/// ProductsInfo 的摘要说明
/// </summary>
public class ProductsInfo
{
//字段
int productid;
string productname;
decimal unitprice;
int categoryid;
public ProductsInfo()
{
//
// TODO: 在此处添加构造函数逻辑
//
public ProductsInfo(int productid, string productname, decimal unitprice, int categoryid)
{
this.productid = productid;
this.productname = productname;
this.unitprice = unitprice;
this.categoryid = categoryid;
}
public int Productid
{
get { return productid; }
set { productid = value; }
}
public string Productname
{
get { return productname; }
set { productname = value; }
}
public decimal Unitprice
{
get { return unitprice; }
set { unitprice = value; }
}
public int Categoryid
{
get { return categoryid; }
set { categoryid = value; }
}
View Code
using System.Data.OleDb;
using System.Collections.Generic;
/// <summary>
/// ProductsOper 的摘要说明
/// </summary>
public class ProductsOper
{
public ProductsOper()
{
//
// TODO: 在此处添加构造函数逻辑
//
unity3d 虚拟现实的控件使用方法比较考验程序员对于unity3d 的熟悉度以及基本操作技术的掌握。因为如果你对于unity3d 不够熟悉,基本的操作不了解的话那么在进行unity3d 虚拟现实的控件使用的时候就会遇到难题,难以顺利的完成unity3d 虚拟现实的控件使用操作。
unity3d 虚拟现实的控件使用
原创
©著作权归作者所有:来自51CTO博客作者9ria的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Unity3D图表控件使用XCharts使用
一、新建工程新建Unity3D空工程,我这里用的是Unity2021.1.19f1c1二、XCharts插件下载链接:百度网盘 请输入提取码提取码
c# 开发语言 github 数据可视化 下载地址 -
unity 3d实现实景照片 unity3d视图
本文将介绍Unity引擎的界面视图。能够让读者理解Unity的视图布局及功能。一、窗口布局 当Unity引擎第一次运行时将看到如下的场景(如图所示),该场景是Unity运行时的默认场景。 Unity引擎初始界面 主窗口的每一个部分都被称为视图(View)。在 Unity中有多种类型的视图,但是,不需要同时看见所有的视图。不同的布局模式 (Layout modes) 包含的视图是不同的
unity 3d实现实景照片 stotybord如何添加子视图 unity gizmo在游戏中绘制 unity 获取鼠标点击位置