I have two classes. The first one represents a property type:
@ccclass("SectionOne")
export class SectionOne {
property({ animatable: true })
public someProp: number = 0;
}
The other class is the component which shows the SectionOne class properties inside:
@ccclass()
export class MyComponent extends cc.Component {
@property({ type: SectionOne, animatable: true })
public sectionOne = new SectionOne();
onLoad() {}
start() {}
update() {}
}
Now when I am trying to animate someProp within the timeline window, it makes the entire property to be null. In other words I cannot animate this property at all. I cannot insert key frame to someProp.