ARSKViewDelegate.ShouldRender(SKView, Double) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开发人员可以重写此方法,以以编程方式指定是否应在 处time
指定的 view
中发生呈现。
[Foundation.Export("view:shouldRenderAtTime:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldRender (SpriteKit.SKView view, double time);
abstract member ShouldRender : SpriteKit.SKView * double -> bool
override this.ShouldRender : SpriteKit.SKView * double -> bool
参数
- view
- SKView
呈现场景的视图。
- time
- Double
用作呈现引用的时间(以秒为单位)。
返回
true
如果此时应呈现计算机图像,则为 。
- 属性