SKPhysicsBody.Create Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
Create(SKTexture, CGSize) |
Создает новый физический текст с указанной текстурой и размером. |
Create(SKTexture, Single, CGSize) |
Создает новый физический текст с указанными значениями. |
Create(SKTexture, CGSize)
Создает новый физический текст с указанной текстурой и размером.
[Foundation.Export("bodyWithTexture:size:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKPhysicsBody Create (SpriteKit.SKTexture texture, CoreGraphics.CGSize size);
static member Create : SpriteKit.SKTexture * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody
Параметры
- texture
- SKTexture
- size
- CGSize
Возвращаемое значение
- Атрибуты
Применяется к
Create(SKTexture, Single, CGSize)
Создает новый физический текст с указанными значениями.
[Foundation.Export("bodyWithTexture:alphaThreshold:size:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKPhysicsBody Create (SpriteKit.SKTexture texture, float alphaThreshold, CoreGraphics.CGSize size);
static member Create : SpriteKit.SKTexture * single * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody
Параметры
- texture
- SKTexture
- alphaThreshold
- Single
- size
- CGSize
Возвращаемое значение
- Атрибуты