You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally I really like the plugin but this is really bugging me.
If I add a scene by "Instantiate Child Scene" it uses the name of the root node, for example "Door".
If I add a scene by Asset Placer it uses the filename plus extension seperated by an underscore, for example "door_tscn".
Why this different naming convention? This is causing me a headache. I don't understand it.
The text was updated successfully, but these errors were encountered:
It uses the PackedScene resource path to get the name. If you want to change it so the extension doesnt show up you can do this:
Line 436 of AssettPallette.cs
private void OnSelectAsset(string path, string name)
{
if (path == _selectedAsset?.path) return;
var pathNull = string.IsNullOrEmpty(path);
_selectedAsset = pathNull ? null : CurrentLibraryData.GetAsset(path);
//SelectedAssetName = name; OLD LINE CHANGE TO BELOW
SelectedAssetName = path.GetFile().GetBaseName();
ClearHologram();
If you want it to access the root node, gonna have to some how access the packed scene instance or just instance and queue free one right here. I am not a C# guy so this is all I managed above. Seems to be working fine for me
Generally I really like the plugin but this is really bugging me.
If I add a scene by "Instantiate Child Scene" it uses the name of the root node, for example "Door".
If I add a scene by Asset Placer it uses the filename plus extension seperated by an underscore, for example "door_tscn".
Why this different naming convention? This is causing me a headache. I don't understand it.
The text was updated successfully, but these errors were encountered: