Click or drag to resize

RenderMaterialKeyKeyFromName Method

Creates a material key from the material name of a material in a scene.

Namespace:  Lumiscaphe.Workshop.Interop
Assembly:  Lumiscaphe.Workshop.Interop (in Lumiscaphe.Workshop.Interop.dll) Version: 21.1.16.0
Syntax
public static RenderMaterialKey KeyFromName(
	RenderSceneManager manager,
	SceneGuid scene,
	SceneProductGuid product,
	string materialName
)

Parameters

manager
Type: Lumiscaphe.Workshop.InteropRenderSceneManager
The scene manager.
scene
Type: Lumiscaphe.Workshop.InteropSceneGuid
The scene identifier.
product
Type: Lumiscaphe.Workshop.InteropSceneProductGuid
The product identifier.
materialName
Type: SystemString
Name of the material.

Return Value

Type: RenderMaterialKey
The material key, if a material with the specified name exits; otherwise, null.
Exceptions
ExceptionCondition
ObjectNullExceptionmanager == null, materialName == null
ObjectDestroyedExceptionRenderSceneManager::IsDestroyed == true
Version Information

Lumiscaphe Workshop SDK

Supported in: 7.0 release 1
See Also