摘要:
1.请问c#中如何将十进制数的字符串转化成十六进制数的字符串//十进制转二进制 Console.WriteLine("十进制166的二进制表示: "+Convert.ToString(166, 2)); //十进制转八进制 Console.WriteLine("十进制166的八进制表示: "+Con 阅读全文
摘要:
string mac = "A844817EFD3C"; byte[] _mac = new byte[mac.Length/2]; for(int i=0;i<_mac.Length;i++) { _mac[i] = Convert.ToByte(mac.Substring(i*2,2), 16) 阅读全文
摘要:
public void Test() { string path = Application.streamingAssetsPath + @"\0.png,0,0,581,391";//从纸张的0. 0点,将图像调整为750×350点(计算:150mm/28.346 px/cm=529点,100mm 阅读全文
摘要:
public MediaPlayer _mediaPlayer; public Slider _videoSeekSlider; public Text time; float _setVideoSeekSliderValue; private bool _wasPlayingOnScrub; vo 阅读全文
摘要:
using UnityEngine; using System.Collections; public class local_storage : MonoBehaviour { // Use this for initialization void Start () { //设定数据 不是代码 / 阅读全文
摘要:
//获取CPU序列号 public string GetCPUSerialNumber() { try { ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * From Win32_Processor" 阅读全文
摘要:
ray = Camera.main.ScreenPointToRay(Input.mousePosition); if (Input.GetMouseButton(0)) { RaycastHit hit; if (Physics.Raycast(ray, out hit)) { if (hit.t 阅读全文
摘要:
if(Input.GetMouseButton(1)) {//控制上下左右旋转 obj.transform.Rotate(Vector3.up, -Time.deltaTime * 200 * Input.GetAxis("Mouse X")); obj.transform.Rotate(Vecto 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ImageDrap : MonoBehaviour, 阅读全文
摘要:
//改变按钮大小 public void BtnScale(Transform transform) { //在自身的大小上加上0.2倍 Vector3 effectScale = transform.localScale + new Vector3(0.2f, 0.2f, 0.2f); //设置动 阅读全文