diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/newAsset.cs b/Templates/BaseGame/game/tools/assetBrowser/scripts/newAsset.cs index e75be74de..dc46dcd2b 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/newAsset.cs +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/newAsset.cs @@ -167,6 +167,13 @@ function CreateNewAsset() return; } + %firstChar = getSubStr(%assetName, 0, 1); + if(isInt(%firstChar)) + { + toolsMessageBoxOK( "Error", "Names cannot start with a number!"); + return; + } + //get the selected module data %moduleName = NewAssetTargetModule.getText();