Skip to content

[EditorButtonAttribute] Method call not work in nested class. #44

@SirLpc

Description

@SirLpc

class RootClass : ScriptableObject
{
public NestedClass childObj;
}

[Serializable]
class NestedClass
{
[EditorButton(nameof(CallMyMethod))]
public string testField;

// Method here in nested class wont be called, but in the parent ScriptableObject will work.
private void CallMyMethod()
{
     // Will not be called, but expected!
}

}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions