@cc-component/cc-ex-component 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -433,6 +433,7 @@ export class ${className}Window extends ViewModel(${this.baseWindowName}) {${sx.
|
|
|
433
433
|
if (node.getComponent("cc.ParticleSystem2D")) return "ParticleSystem2D";
|
|
434
434
|
if (node.getComponent("sp.Skeleton")) return "sp.Skeleton";
|
|
435
435
|
const com = node.getComponents(Component).pop()
|
|
436
|
+
if (!com) return "Node";
|
|
436
437
|
return js.getClassName(com).replace('cc.', '');
|
|
437
438
|
}
|
|
438
439
|
|