Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
anim_insert_ques
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
anim_insert_ques
Commits
d1840af5
Commit
d1840af5
authored
Apr 27, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test:
parent
80519f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
anim_insert_ques.ts
assets/anim_insert_ques/scene/anim_insert_ques.ts
+8
-3
No files found.
assets/anim_insert_ques/scene/anim_insert_ques.ts
View file @
d1840af5
...
...
@@ -705,9 +705,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
dragonDisplay
=
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
armatureName
=
dragonDisplay
.
getArmatureNames
()[
0
];
console
.
log
(
'
animationName =
'
+
JSON
.
stringify
(
dragonDisplay
.
getArmatureNames
()));
const
animationName
=
dragonDisplay
.
getAnimationNames
(
dragonDisplay
.
armatureName
)[
0
];
console
.
log
(
'
animationName =
'
+
JSON
.
stringify
(
dragonDisplay
.
getAnimationNames
(
dragonDisplay
.
armatureName
)));
dragonDisplay
.
playAnimation
(
animationName
,
1
);
dragonDisplay
.
timeScale
=
0
;
...
...
@@ -1182,6 +1180,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
onDestroy
()
{
console
.
log
(
'
in onDestroy
'
);
this
.
releaseAssets
();
}
const
armatureDisplay
=
this
.
canvas
.
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
this
.
canvas
.
animaNode
.
removeFromParent
();
setTimeout
(()
=>
{
armatureDisplay
.
dragonAtlasAsset
.
texture
.
destroy
();
armatureDisplay
.
dragonAtlasAsset
.
destroy
();
armatureDisplay
.
dragonAsset
.
destroy
();
},
100
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment