代码如下: ParticleSystem ps = GetComponent<ParticleSystem>(); var main = ps.main; var color = Color.red; main.startColor = new ParticleSystem.MinMaxGradient(color);
关于bat的资料多但零碎,记录一下. 1.设置环境变量即时生效:通过重启explorer来实现即时生效(亲测有效) @echo off set curPath=%cd% wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%curPath%tool\dig;%path%" taskkill /im explorer.exe /f @echo ===
现象: 项目有一个需求是实现视频的慢速播放,使用的是封装的AvPlayer,但是设置时发现比如设置rate为0.5,0.1,0.01都是一样的速度,非常疑惑.后来经过查找资料,发现iOS10对这个API进行了更新 iOS10之前官方API对AvPlayer rate属性的解释是 /*! @property rate @abstract Changes the playback rate of the input signal @discussion A value of 2.0 results
QualitySettings.SetQualityLevel 设置质量级别 public static void QualitySettings.SetQualityLevel(int index) public static void SetQualityLevel(int index, [DefaultValue("true")] bool applyExpensiveChanges); Description 描述 Sets a new graphics quality lev
16:31 Lombok Requires Annotation Processing Annotation processing seems to be disabled for the project "swaggerdemo". But lombok is on classpath. For the lombok plugin to function correctly, please enable it under "Settings > Build >