共用方式為


ISCNSceneRenderer.Prepare 方法

定義

多載

Prepare(NSObject, Func<Boolean>)
Prepare(NSObject[], Action<Boolean>)

Prepare(NSObject, Func<Boolean>)

[Foundation.Export("prepareObject:shouldAbortBlock:")]
[Foundation.Preserve(Conditional=true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public bool Prepare (Foundation.NSObject obj, Func<bool> abortHandler);
abstract member Prepare : Foundation.NSObject * Func<bool> -> bool

參數

obj
NSObject
abortHandler
Func<Boolean>

即將加入。

這個參數可以是 null

傳回

屬性

適用於

Prepare(NSObject[], Action<Boolean>)

[Foundation.Export("prepareObjects:withCompletionHandler:")]
[Foundation.Preserve(Conditional=true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public void Prepare (Foundation.NSObject[] objects, Action<bool> completionHandler);
abstract member Prepare : Foundation.NSObject[] * Action<bool> -> unit

參數

objects
NSObject[]

要準備的物件。

completionHandler
Action<Boolean>

如果所有場景資源的準備成功,則 false 為接收 true 的處理常式,如果不是,則為 。

屬性

適用於