在unity写了一个编辑类,基于iTweenpath插件,为了更方便的操作iTweenpath,顺便练习UnityEditor的操作,写了一个CreateiTweenPath,放在Editor文件夹中. using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEditor; public class CreateiTweenPath :EditorWindow { [Men
概念: 序列化 (Serialization)将对象的状态信息转换为可以存储或传输的形式的过程.在序列化期间,对象将其当前状态写入到临时或持久性存储区.以后,可以通过从存储区中读取或反序列化对象的状态,重新创建该对象. 实现例子: 写一个MyClass类,提供了可被序列化的属性,不用其余操作,如下: using UnityEngine; using UnityEditor; [InitializeOnLoad] public class MyClass : ScriptableObject {
using UnityEngine; using UnityEngine.WSA; public class test : MonoBehaviour { void Start () { //打开百度 Launcher.LaunchUri("www.baidu.com", false); //打开图片 Launcher.LaunchUri("C:\\Users\\Administrator\\Desktop\\TEXT.jpg", false); //打开qq La
先上错误信息: Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/... 一个简单的页面只有这么段js document.addEventListener('touchstart', function(event) { event.preventDefault(); }, false); 报的