Search Issue Tracker

Fixed in Unity 5.4.0

Votes

0

Found in

5.4.0b5

Issue ID

769136

Regression

Yes

[Cloth] Adding cloth to an object throws multiple errors and added cloth component is missing all of its properties

Physics

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

To reproduce:
1. Open attached project
2. Select banner1 object
3. Add cloth component
4. Notice errors in console:

get_skinIndex is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'ClothInspector' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.ClothInspector:.cctor()

LoadAssetAtPath is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'ClothInspector' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.ClothInspector:.cctor()

UnityException: LoadAssetAtPath is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'ClothInspector' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.

The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.DockArea:OnGUI()

Before 5.4.0b9 this error was printed:
GetLocalizedString is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'ClothInspector' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.ClothInspector:.cctor()

Regression from 5.3

Comments (11)

  1. 1e04c7a97ef98f1346d5922007189df7?d=mm

    ivanovichgames

    May 17, 2016 11:21

    Not working yet in 5.4b15

  2. 2ebd3734157ff49a3123eea67735c492?d=mm

    quitebuttery

    Apr 18, 2016 00:54

    Still broken in 5.4b14

  3. 3945c7367d688832baa284d3bc1e8a13?d=mm

    Anton1274

    Apr 14, 2016 13:02

    Still broken in 5.4 beta 14

  4. 6d14b0d73991f0ef221ae02a411c070b?d=mm

    NhojEntuna

    Apr 06, 2016 16:47

    Still broken in 5.4 b12 and b11 and I heard that it's still broken in b13

  5. 339ffa78a8043077920bcd3b67846163?d=mm

    Goldrake

    Apr 05, 2016 09:52

    cloth not working....it's so a pain..

  6. A2b30891a38bf4d9585bc369e07924ca?d=mm

    Mark-Davis

    Apr 04, 2016 22:25

    It's broken in 5.4.0b13 as well.

  7. 8250fb2010d0ade34f2e4510246477c5?d=mm

    SHG

    Apr 03, 2016 21:40

    Game constantly crashes on just one level with cloth giving me an "Access Violation (0xc0000005)", and the only error that really pops out to me in the console is this one.

  8. D73f7ed71ab5bcb243d26e40168f22f0?d=mm

    antoni4040

    Apr 03, 2016 06:05

    Still not working on Linux, version 5.4b10

  9. C08de6e474cdeab9e7f6d800cca4898d?d=mm

    HyPer512

    Apr 02, 2016 07:01

    Still broken. latest beta.

  10. 1af325105a5a9f97e0a33983328afd2c?d=mm

    sSuite

    Mar 31, 2016 23:30

    Yeah, this is still broken

All about bugs

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