Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2019.3.0b5
Issue ID
1187140
Regression
No
[Preset] Properties are not visible and MissingComponentException error is thrown on selecting Tree preset asset
Properties are not visible and MissingComponentException error is thrown on selecting Tree preset asset.
Steps to repro:
1. Create a new project.
2. Gameobject > 3D Object > Tree.
3. Create a Preset of Tree.
4. Select the newly created Tree object in the Project View.
Actual Result:
Properties are not visible and error is thrown in the console.
Expected Result:
Properties are visible and no error is thrown in the console.
Reproducible in:
2020.1.0a6, 2019.3.0b5, 2019.2.0f1, 2019.1.0f1
Environment:
Windows & Mac.
Stack trace:
MissingComponentException: There is no 'Renderer' attached to the "" game object, but a script is trying to access it.
You probably need to add a Renderer to the game object "". Or your script needs to check if the component is attached before using it.
UnityEngine.Component.GetComponent[T] () (at <5e35e4589c1948aa8af5b8e64eea8798>:0)
TreeEditor.TreeEditor.DrawHierachy (TreeEditor.TreeData treeData, UnityEngine.Renderer renderer, UnityEngine.Rect sizeRect) (at <52c46852ed4749ed926125cda2005635>:0)
TreeEditor.TreeEditor.InspectorHierachy (TreeEditor.TreeData treeData, UnityEngine.Renderer renderer) (at <52c46852ed4749ed926125cda2005635>:0)
TreeEditor.TreeEditor.OnInspectorGUI () (at <52c46852ed4749ed926125cda2005635>:0)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <52c46852ed4749ed926125cda2005635>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <52c46852ed4749ed926125cda2005635>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <52c46852ed4749ed926125cda2005635>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass53_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <52c46852ed4749ed926125cda2005635>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity Package Manager Events Not Triggered When Changing Registry
- "DateTime.Now" in the UK timezone does not adjust when the British Summer Time is active
- "Unsupported source texture format (7) in ComputeNextMipLevel" error is shown and the texture atlas is corrupted when the texture format "RGB Compressed ETC2 4bits" is selected
- The label that uses data binding is no longer updated at runtime when `INotifyBindablePropertyChanged` reloads updates of the VisualTreeAsset in UIDocument
- HDRP Graphics "High Quality Line Rendering" is missing a documentation link
Add comment