Condividi tramite


SCNMaterial.FromMaterial(MDLMaterial) Metodo

Definizione

Crea e restituisce un nuovo materiale di Scene Kit dal materiale di I/O del modello fornito.

[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

Parametri

material
MDLMaterial

Restituisce

Attributi

Si applica a