@property type of abstract class issues in 3.x version which work fine in 2.x
Cocos
MARCH 10, 2024
so back to the 2.x version i have these code: enum TargetColliderType { GROUP, NODE, BOTH } @ccclass('ATargetCollider') abstract class ATargetCollider { abstract get target(): any[]; abstract set target(value: any[]); } @ccclass('GroupTargetsCollider') class GroupTargetsCollider extends ATargetCollider { @property([cc.Integer]) _target: number[] = [] @property( { type: [cc.Integer], override: true, //group: //{ // id: "0", // name: "Condition", // displayOrder: 0 //} } ) get target(): number[] {
Let's personalize your content