vue报错v-model cannot be used on v-for or v-slot scope variables because they are not writable vue报错v-model cannot be used on v-for or v-slot scope variables because they are not writable
在Unity中使用自定义宏 设置方法Edit->Project Setting->Player->Other Setting->Script Compilation->Scripting Define Symbols示例#if FOX_DEV ...#endif
Unity Timeline 获取ControlTrack的GameObject实例 介绍Unity Timeline 的 ControlTrack 控制的 Prefab 有两种方法Source Game ObjectPrefab代码以下函数可以获取 Source Game Ojbect 和 Prefab实例后的 GameObject Instanceusing System.Collections.Generic;using UnityEngine;using UnityEngine.Playables;using UnityEngine.Timel
c# struct 判断是否已经初始化 做Unity时调用 PlayableDirector.playableGraph中的方法时会报错,原因是 PlayableGraph 是个struct, 如果没有初始化, 调用里面的某些函数就会报错struct 不是 classclass判断是否被初始化, 用 ==nullstruct 判读是否被初始化, 用 structInstance.Equals(default(StructA));playableGraph使用要先判断if (playableDirector.playableGraph.
Unity 相机 鼠标控制 移动+旋转 移动初始化临时变量//获取鼠标位置变化数据float _mouseX = Input.GetAxis("Mouse X");float _mouseY = Input.GetAxis("Mouse Y");//初始化临时变量Vector3 moveDir = Vector3.zero;//_mouseY控制if(...){ //_mouseY 控制前后移动 moveDir += _mouseY * -camera.transform.forward; moveDir.y = 0;}e
SceneManager.LoadScene 和 SetActiveScene 最简单方法 因为以下原因 LoadScene 和 SetActiveScene 不能立即连续使用问题SceneManager.LoadScene之后调用SceneManager.SetActiveScene报错,提示场景未加载。(ArgumentException: SceneManager.SetActiveScene failed; scene ‘XXX’ is not loaded and therefore cannot be set active)原因:SceneManager.LoadSceneU
Unity C#检查文件所属文件夹是否存在并创建 文章目录检查文件路径(可以是多级),如果不不存在就创建新的file_path格式示例:F:\code\repos\proj1public static void CreateDirectrory(string file_path){ if (!string.IsNullOrEmpty(file_path)) { string dir_name = Path.GetDirectoryName(file_path); if (!Directory.Exis
Unity 世界坐标转本地坐标 文章目录世界坐标转本地坐标本地坐标转世界坐标实例世界坐标转本地坐标transform.InverseTransformPoint()本地坐标转世界坐标transform.TransformPoint()实例鼠标点击物体, 获取点击点在物体上的坐标var ray = Camera.main.ScreenPointToRay(UnityEngine.Input.mousePosition);var hits = UnityEngine.Physics.RaycastAll(ray, 1024);
VSCode安装PlantUML绘制UML图 安装步骤安装java 保证java.exe在path中安装graphviz-xxx.msi 官网 http://graphviz.org/VSCode安装插件PlantUML使用创建文件新建或打开后缀名pu的文本文件打开预览VSCode中按F1(Command Palette)PlantUML: Preview Current Diagram导出VSCode...
GoLand+Delve(dlv) 远程调试 文章目录安装delve服务端启动go程序示例工程示例源代码编译go程序运行go程序dlv attach go程序GoLand配置终止dlv和go程序TODO服务器是linux安装delve参考 https://yq.aliyun.com/articles/57578go get github.com/derekparker/delve/cmd/dlv可以用 $GOPATH/bin/d...
vagrant 文章目录网络安装官方CentOS7本地安装设置查看导出boxError网络安装官方CentOS7vagrant init centos/7vagrant up会自动从网络加载box并安装本地安装vagrant add name ./xxx.boxvagrant init namevagrant up设置Vagrantfile 文件修改设置名称config.vm.box...
VirtualBox安装CentOS7 开启sftp访问service sshd start开启xshell访问servcie network startnodejs的SimpleServer启动后没有生效firewall-cmd --zone=public --add-port=80/tcp --permanentfirewall-cmd --zone=public --add-port=443/tcp --perman...
firewalld: Linux CentOS7使用firewalld打开关闭防火墙与端口 文章目录1. firewalld的基本使用2. systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。3. 配置firewalld-cmd4. 开启/关闭一个端口转自 https://www.cnblogs.com/moxiaoan/p/5683743.html1. firewalld的基本使用启动: systemctl st...
Linux查看版本 文章目录查看内核版本查看发行版本查看内核版本[@localhost ~]# uname -a Linux VM_16_16_centos 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux[root@localhost ~]# cat /proc/vers...
Error: go install: no install location for .go files listed on command line (GOBIN not set) 文章目录e.g.go installgo builde.g.当前目录结构srchelloHello.gogo install用 go install src/hello/Hello.go 编译 会出现以下错误go install: no install location for .go files listed on command line (GOBIN not...