We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompoentID
the way, how it may work:
[UsedImplicitly] public class IdDrawer : IComponentDrawer { public bool HandlesType(Type type) => type == typeof(FavoriteComponent); public IComponent DrawComponent(IComponent component) { var componentID = ((FavoriteComponent)component).Value; var names = ComponentsLookup<GameScope>.Instance.ComponentNames; var temp = EditorGUILayout.Popup(nameof(componentID.Index), componentID.Index, names); #if DEBUG componentID.Name = names[temp]; #endif return component; } }
for component:
[GameScope] public sealed class FavoriteComponent : ValueComponent<GameComponentID> { }
and also it requres
[Serializable] public class ComponentID<TScope> : ComponentIDBase where TScope : IScope { // ... #if DEBUG public string Name { set { _name = value; _cashedIndex = null; } } #endif // ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
the way, how it may work:
for component:
and also it requres
The text was updated successfully, but these errors were encountered: