Urho.Material.FromImage Method

Creates a material from a 2D Texture.

Syntax

public static Material FromImage (String image)

Parameters

image
Name of an image that can be fetched from the ResourceCache.

Returns

Material that contains the image and has been configured with the CoreAssets.Techniques.Diff Technique.

Remarks

This is a shortcut to creating a new mateiral, setting the texture to TextureUnit.Diffuse on the 2D texture loaded from the cache with the name image.

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0