Compartir a través de


SCNMaterial.FromMaterial(MDLMaterial) Método

Definición

Crea y devuelve un nuevo material de Scene Kit a partir del material de E/S del modelo proporcionado.

[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

Parámetros

material
MDLMaterial

Devoluciones

Atributos

Se aplica a