SCNMaterial.FromMaterial(MDLMaterial) Méthode

Définition

Crée et retourne un nouveau matériau Scene Kit à partir du matériau d’E/S de modèle fourni.

[Foundation.Export("materialWithMDLMaterial:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static SceneKit.SCNMaterial FromMaterial (ModelIO.MDLMaterial material);
static member FromMaterial : ModelIO.MDLMaterial -> SceneKit.SCNMaterial

Paramètres

material
MDLMaterial

Retours

Attributs

S’applique à