![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.net
Forget December
这个作者很懒,什么都没留下…
展开
-
unity3d中对position.x赋值出现错误
transform.position.x = target.parent.parent.position.x;出现错误:无法修改“Transform.position(这里是等号左边的)”的返回值,因为它不是变量我们鼠标悬浮在position上面可以看到其定义Vector3 Transform.position { get; set; }position是一个可以读取可以赋值的属性,position.x调用了其get方法,但没有接收返回值,所以你给一个数值而不是变量赋值是没有意义的,比如 12=原创 2021-08-31 20:47:50 · 740 阅读 · 0 评论 -
C# Substring()在winform一次的应用
webrowser 控件设置打开页面问题string strPath = Application.StartupPath;//表示该应用所在的起始目录 //strPath=“E:\C#project\MagicCony\MagicCony\bin\Debug” strPath = strPath.Substring(0,strPath.LastIndexOf("\\"...原创 2019-06-02 22:54:08 · 148 阅读 · 0 评论