Hi there, I’ve been working on the inspector plugin, I understand the basic concepts but in such advanced development, the documents are really poor.
I want to know how I can retrieve the properties of a given component inside of a plugin to present in the inspector panel.
As you know, the inspector retrieves components and functions of the component while you are going to set an event to button click, but I couldn’t find how it is possible.
What about properties of a given component? Scripting is also built into the compiler, and I hope to provide more detailed examples
Sorry, but I don’t get your question!
I know what node is selected, but inside of plugin code, I don’t have any reference to the Component’s members!
I wonder button inspector how is working!
Maybe I see what you mean. My English is terrible. Sorry.
cocos does not give a node a way to fetch all components, but you can try node[’_components’] to fetch all components
1 Like
No problem my friend my English isn’t good enough as well!
Let me try