I am using the following code to get a single node:
const p: cc.Node = cc.find("p");
The problem here that I have more than one node named “p”.
Wht I need is to get multiple nodes by name like this:
const p: Array<cc.Node> = cc.find("p");
Of course this is not working. So how can I achive this?