Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.3.0f3

Issue ID

1024606

Regression

No

Animator component isn't created and no exception is thrown when creating an animation for GameObject with certain invalid names

Animation

-

How to reproduce:
1. Open any project
2. Create a new Cube GameObject and rename it to "Cu/be"
3. Open the Animation view and select the "Cu/be" GameObject
4. Press "Create" in the Animation view and save it

Expected results: An exception should be thrown letting the user know about invalid characters in the name of the animation
Actual results: Animator component and Animator Controller aren't created and no exception is thrown

Reproducible with: 5.6.5p4, 2017.1.3p3, 2017.2.2p3, 2017.4.1f1, 2018.1.0f1, 2018.2.0a9

The following names also cause the issue:
(the name only contains spaces)
.xxxx(begins with a period)
xx/xx(contains forward slash anywhere but the beginning of the name)
xx\xx(contains forward slash anywhere but the beginning of the name)

  1. Resolution Note:

    This is an edge case, which will also cause a bunch of problems across different Unity APIs which use transform paths to resolve objects. Fixing it is not worth slowing down the Animation Window to protect against this edge case

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.