SKScene.Delegate プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
クラス デリゲートとして機能する SpriteKit.ISKSceneDelegate モデル クラスのインスタンス。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public SpriteKit.ISKSceneDelegate Delegate { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.Delegate : SpriteKit.ISKSceneDelegate with get, set
プロパティ値
SpriteKit.ISKSceneDelegate モデル クラスのインスタンス
- 属性
注釈
このオブジェクトに割り当てられたデリゲート インスタンスは、イベントを処理したり、このクラスに必要に応じてデータを提供したりするために使用されます。
Delegate または WeakDelegate 値の値を設定すると、C#スタイルのイベントに配信されるのではなく、指定したインスタンスにイベントが配信されます
これはオブジェクトの厳密に型指定されたバージョンです。開発者は、[Export] 属性で修飾された NSObject から派生したクラスを割り当てるだけの場合は、代わりに WeakDelegate プロパティを使用する必要があります。