Xcode 11 动作编辑器?如何调用? [英] Xcode 11 Action Editor? How to invoke?

查看:62
本文介绍了Xcode 11 动作编辑器?如何调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是,当我在编辑器中打开 SCNP 文件时,我可以看到正在动画的星星等等.但是没有任何迹象表明可以打开这样的编辑器.现在,这可能与 SCNP 文件都是关于初始化 PE 的 PE 参数有关.舞台上没有实际的节点或对象.一个想法是你需要有一个可编辑的动作,否则 Xcode 不会打开动作编辑器?

这个动作是如何到达那里的,或者我如何编辑它并不清楚.我假设有人将它放在早期版本的 Xcode 中的 SCNP 中.然后行动被遗忘了.或类似的东西.它可能只是一个错误/损坏的 SCNP 文件.

解决方案

正如你提到的,这是 Core Animation 动画驱动

In an earlier post I asked about the right settings for initializing a SCNParticleEngine. With some hints from Zay

I managed to get both the SCNP and code paths to work – almost identically. Except that the SCNP path had the particles shrinking over time while the coding path did not.

Turns out that buried inside the SCNP file is a dictionary entry "Size" which is a SCNParticlePropertyController. Here’s the code from the debugger:

The gotcha is that when I open the SCNP file in the editor, I can see the stars being animated etc. But there is no sign of an Action or any affordance to open such an editor. Now, this may be related to the fact that the SCNP file is all about the PE parameters for initializing the PE. There is NOT an actual node or object on the stage. One thought is you need to have an editable action or Xcode won’t open the Action editor?

How this action got there or how I might edit it is not clear. I assume someone put it in the SCNP in an earlier version of Xcode. Then the Action was forgotten. Or something like that. It may simply be a bug/corrupted SCNP file.

解决方案

As you mention this is Core Animation animation driving SCNParticlePropertySize. It is possible to configure it in the SceneKit scene editor via the Attributes inspector (not the Action editor).

这篇关于Xcode 11 动作编辑器?如何调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆