Data component script is not selected when using Select Dependencies on a Scene
Unity: Serialization
Open
7.0.X
Steps to reproduce:
Open the attached project
In the Project window, select Assets/Scenes/Level.unity
In the Assets menu, select Select Dependencies
Observe the selected assets in the Project window
Actual results: Player.cs is selected, but GameData.cs is not. The "Hero" GameObject in Level.unity has the Player script and the Health data component, and Health is defined in GameData.cs.
Expected results: Both Player.cs and GameData.cs are selected.
Reproducible with versions: 7000.0.0a22
Can’t test with versions: 6000.3.29f1, 6000.6.11f1, 6000.7.0b11 (data components on GameObjects are not available)
Tested on (OS): Ubuntu 24.04.4
Notes:
Scripts used in the project:
using UnityEngine;
publicclass Player : MonoBehaviour
{
publicint lives = 3;
}
using System;
using Unity.Entities;
[Serializable]
public struct Health : IComponentData
{
public int Current;
public int Max;
}
Prioritise and Follow this issue
0
Have a workaround or additional info about this issue?