Unity 报错 Operation is not valid due to the current state
最近做 unity 项目编辑器,在按自定义按钮加载场景的时候,会出现 InvalidOperationException: Operation is not valid due to the current state
错误。
Unity 报错 Operation is not valid due to the current state
最近做 unity 项目编辑器,在按自定义按钮加载场景的时候,会出现 InvalidOperationException: Operation is not valid due to the current state
错误。
今天踩了个小坑,项目中的音效播放出了问题。
项目用的是 cocos2dx 的那套 sound 代码。
某个音效由于不存在,所以创建失败了。这不奇怪。但是之后复用这个 bufferid 的时候就很诡异了。无论是:
还是
返回的都是 a001 或者 a003。