批量修改指定路径下的资源的AssetBundleName与Variant. 脚本代码如下: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.IO; /// <summary> /// AlterAssetBundle类为修改批量修改AssetBundle的Name与Variant的编辑器窗口 /// </summar
代码如下: ParticleSystem ps = GetComponent<ParticleSystem>(); var main = ps.main; var color = Color.red; main.startColor = new ParticleSystem.MinMaxGradient(color);
的windows上使用unity,修改过脚本或inspector中的数值后运行编辑器报错: Unhandled Exception: System.UnauthorizedAccessException: Access to the path "XXX\Temp\Assembly-CSharp.dll.mdb" is denied 将Temp文件夹只读属性去掉,再reimport all或者重新打开unity.