ModelSkeleton constructor

ModelSkeleton({
  1. StructPointer<ModelSkeleton>? op,
  2. int? boneCount,
  3. List<BoneInfo>? bones,
  4. List<Transform>? bindPose,
})

Implementation

ModelSkeleton({
  super.op,
  int? boneCount,
  List<BoneInfo>? bones,
  List<Transform>? bindPose,
}) : _boneCount = boneCount ?? bones?.length ?? 0 {
  _bones = field_bones.live(() => op, bones ?? []);
  _bindPose = field_bindPose.live(() => op, bindPose ?? []);
}