我是这个网站的新手,我的名字是凯文格里菲斯,主要是在3D工作,我在去年在Unity3D上建立一个游戏,一切似乎都没问题,直到我必须升级我的软件.. :(这就是为什么我在这里寻求一些帮助,因为我真的不知道我的方式Xcode,我刚刚升级到上面,现在当我建立我得到这些2错误从Xcode任何人都知道如何纠正这些请我真的很感激帮助.
Undefined symbols for architecture armv7: "_OBJCCLASS$_ALAssetsLibrary", referenced from: objc-class-ref in libScreenRecorder.a(MP4RecorderProcessor.o)
ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
谢谢.
我正在尝试将浮点数减少一个时间值,我正在使用Unity并停止时间Time.timeScale = 0f;因此无法Time.deltaTime在while循环中使用'Time.realtimeSinceStartup',我从全局脚本中读取主卷变量玩家可以在游戏中设置0 - 1,所以说我读入0.6并且我想在2秒内将音量降低到0我如何获得百分比以保持减少音量?
这是我的代码..
private IEnumerator VolumeDown ()
{
float volumeIncrease = globalVarsScript.musicVolume;
float volumePercentage = ??;
float newLerpEndTime = Time.realtimeSinceStartup + 2f;
while (Time.realtimeSinceStartup < newLerpEndTime)
{
audio.volume = volumeIncrease;
volumeIncrease -= volumePercentage;
yield return null;
}
}
Run Code Online (Sandbox Code Playgroud)
对不起,我只是无法获得'volumePercentage'
谢谢.