ARSKViewDelegate.ShouldRender(SKView, Double) 方法

定义

开发人员可以重写此方法,以以编程方式指定是否应在 处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 如果此时应呈现计算机图像,则为 。

属性

适用于