Skip to content

Instantly share code, notes, and snippets.

@udaken
Last active October 27, 2021 08:43
Show Gist options
  • Save udaken/9cdb1da0bc40158b807c7eff3cd28878 to your computer and use it in GitHub Desktop.
Save udaken/9cdb1da0bc40158b807c7eff3cd28878 to your computer and use it in GitHub Desktop.
foreach($f in Get-ChildItem "*.cs" -Recurse) {
if ( Test-Path -Path "$($f.FullName).meta" ) {
continue;
}
$guid = [Guid]::NewGuid().ToString("N");
Write-Output "fileFormatVersion: 2
guid: ${guid}
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: " | Out-File -Encoding ascii -LiteralPath "$($f.FullName).meta"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment