本文内容主要翻译自下面这篇文章 https://unity3d.com/cn/learn/tutorials/topics/best-practices/guide-assetbundles-and-resources?playlist=30089 A guide to AssetBundles and Resources 第二部分 Resources文件夹 这部分讨论Resources系统.这个系统允许开发者在一个或者多个Resources目录里面存储Asset,并能够使用Resources
Shader.Find 查找 static function Find (name : string) : Shader Description描述 Finds a shader with the given name. 查找名为name的着色器. Shader.Find can be used to switch to another shader without having to keep a reference to the shader. name is the name you ca
概念: 序列化 (Serialization)将对象的状态信息转换为可以存储或传输的形式的过程.在序列化期间,对象将其当前状态写入到临时或持久性存储区.以后,可以通过从存储区中读取或反序列化对象的状态,重新创建该对象. 实现例子: 写一个MyClass类,提供了可被序列化的属性,不用其余操作,如下: using UnityEngine; using UnityEditor; [InitializeOnLoad] public class MyClass : ScriptableObject {
[转自] http://www.360doc.com/content/15/0205/20/21861372_446525665.shtml :: 自动将指定文件夹中的图片写入到 html 文件中 @echo off & SetLocal EnableDelayedExpansion For /f "delims=" %%i in ('dir/b/on images') do (Set a=%%~pi Set a=!a:\= !) For %%i in (%a%) do Set