Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Generates new unique name using template: [{Name or SourceFilePath} - ]{AssetTypeName}[ #{AutoNumber}] where brackets [ and ] denote optional parts. Resulting names will be like "F-16.dae - Model #2", "Actor #1" etc.

Namespace: Visual3D
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public string CreateUniqueName(
	string baseName,
	Type assetType
)
Public Function CreateUniqueName ( _
	baseName As String, _
	assetType As Type _
) As String

Parameters

baseName
String
Name of asset or it's source file
assetType
Type
Type of asset

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionassetType is null.

See Also