- 博客(13)
- 收藏
- 关注
原创 Excel每行导出为一个txt
Sub test()For I = 1 To 200 '行数Open "D:\result_95\" & Cells(I, 10).Value & ".txt" For Output As #1Data = "" ‘把第几行保存为名字For J = 1 To 7 ‘列数Data = Data & Cells(I, J).Value & vbTabNextPrint #1, DataClose #1NextEnd Sub
2022-04-16 10:21:32
2183
1
原创 c#键盘触发事件
if (Input.GetKeyDown(KeyCode.W)) { //Destroy(cube); cube.SetActive(false); ball.SetActive(true); }
2021-09-18 15:24:35
749
原创 unity位移动画
using System.Collections;using System.Collections.Generic;using UnityEngine;public class separationAniControl : MonoBehaviour{ public float f_distance; public GameObject rock_a; public GameObject rock_b; float f_rockY; float f_spee
2020-12-10 15:19:48
867
原创 unity物体在屏幕上连线
public class communication: MonoBehaviour{ public Transform gamaOBj1; public Transform imsge; public Transform gamaOBj2; Vector3 gamaOBj1ViewportPoint; Vector3 gamaOBj2ViewportPoint; float image_x; float image_y; public
2020-10-22 10:34:19
618
原创 unity ui控制物体透明度
float f_alpha; void ChangeAlpha(double Alpha) { var r = GetComponent<Renderer>().material.color.r; var g = GetComponent<Renderer>().material.color.g; var b = GetComponent<Renderer>().material.color.b; ..
2020-09-15 17:15:38
1258
原创 unity 物体沿某一坐标轴旋转
obj.transform.Rotate(0, fRotateSpeed * Time.deltaTime, 0, Space.Self);
2020-09-11 11:35:47
730
原创 复制A并使其成为B的子物体
GameObject obj = Instantiate(objA) as GameObject;obj.transform.parent = objB.transform;
2020-09-11 11:19:46
121
原创 unity按名字查找子物体并销毁
foreach (Transform t in csCell.GetComponentsInChildren<Transform>())//检测目标物体所有名字为aaa的子物体 { if (t.name == "aaa") { Destroy(t.gameObject);//销毁名字为BeiDong(...
2020-09-11 11:15:40
1162
原创 ##unity Cross Section Shader透明问题
##unity Cross Section Shader透明问题Shader "CrossSection/Transparent/Bumped Specular" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _CrossColor("Cross Section Color", Color) = (1,1,1,1) _SpecColor ("Specular Color", Color) = (0.5, 0.5, 0.5
2020-08-14 10:03:19
606
1
原创 unity c# 改变物体贴图,颜色,透明度,缩放,碰撞检测
unity c# 改变物体贴图,颜色,透明度,缩放,碰撞检测using UnityEngine;using UnityEngine.UI;using System;using Color = UnityEngine.Color;public class Danbscontro : MonoBehaviour{ //Dropdown dropdownLinetype; // Dropdown dropdownLinewidth; public Texture linet
2020-08-06 09:02:47
1293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人