自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 unity获取父物体

var Father = gameObject.transform.parent;

2020-09-11 11:25:54 14410

原创 unity 获取另一对象脚本上的数据

float range= objA.GetComponent<A_script>().fRangA;

2020-09-11 11:25:01 1774

原创 unity 控制对象显示隐藏

obj.SetActive(true);obj.SetActive(false);

2020-09-11 11:21:15 461

原创 复制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关注的人

提示
确定要删除当前文章?
取消 删除