Skip to content

Commit 057457f

Browse files
iTris666julienf-unity
authored andcommitted
Uniquify create visual effect gameobject name. Standard behaviour. #75
1 parent 19e3fba commit 057457f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
- Fix for node window staying when clicking elsewhere
1111
- Prefab highlight missing for initial event name toggle [Case 1263012](https://issuetracker.unity3d.com/product/unity/issues/guid/1263012/)
1212
- fix crash when creating a loop in subgraph operators [Case 1251523](https://issuetracker.unity3d.com/product/unity/issues/guid/1251523/)
13+
- Make VisualEffect created from the GameObject menu have unique names [Case 1262989](https://issuetracker.unity3d.com/product/unity/issues/guid/1262989/)
1314

1415
## [8.2.0] - 2020-07-08
1516

com.unity.visualeffectgraph/Editor/VFXAssetEditorUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static VisualEffectAssetEditorUtility()
6262
[MenuItem("GameObject/Visual Effects/Visual Effect", false, 10)]
6363
public static void CreateVisualEffectGameObject(MenuCommand menuCommand)
6464
{
65-
GameObject go = new GameObject("Visual Effect");
65+
GameObject go = new GameObject(GameObjectUtility.GetUniqueNameForSibling(null,"Visual Effect"));
6666
GameObjectUtility.SetParentAndAlign(go, menuCommand.context as GameObject);
6767
var vfxComp = go.AddComponent<VisualEffect>();
6868

0 commit comments

Comments
 (0)