I want to add a dialog entry field type that holds the name of specific GameObjects in a scene.
Ideally, I want to have a dropdown where you can select the gameobject in question.
I've overriden the CustomFieldType class like so:
Code: Select all
namespace Dialogs.AssemblyExtensions.Editor
{
[CustomFieldTypeService.Name(FieldName)]
public class CustomFieldTypeButtonParent : CustomFieldType
{
public const string FieldName = "ButtonParent";
If I try to simply put it in an extension of the dialog editor assembly defined like so
Code: Select all
{
"reference": "DialogSystemEditor"
}
But it uses the default text drawer. Sometimes I get warnings from the dialog system that it cannot find the extension type, but I cannot reproduce it at the moment.
Should I just add the type to the pixel crushers folder?