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
0155fb23
Commit
0155fb23
authored
Apr 27, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: log
parent
6ef4981c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
anim_insert_ques.ts
assets/anim_insert_ques/scene/anim_insert_ques.ts
+4
-0
No files found.
assets/anim_insert_ques/scene/anim_insert_ques.ts
View file @
0155fb23
...
@@ -705,7 +705,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -705,7 +705,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
dragonDisplay
=
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
const
dragonDisplay
=
animaNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
dragonDisplay
.
armatureName
=
dragonDisplay
.
getArmatureNames
()[
0
];
dragonDisplay
.
armatureName
=
dragonDisplay
.
getArmatureNames
()[
0
];
console
.
log
(
'
animationName =
'
+
JSON
.
stringify
(
dragonDisplay
.
getArmatureNames
()));
const
animationName
=
dragonDisplay
.
getAnimationNames
()[
0
];
const
animationName
=
dragonDisplay
.
getAnimationNames
()[
0
];
console
.
log
(
'
animationName =
'
+
JSON
.
stringify
(
dragonDisplay
.
getAnimationNames
()));
dragonDisplay
.
playAnimation
(
animationName
,
1
);
dragonDisplay
.
playAnimation
(
animationName
,
1
);
dragonDisplay
.
timeScale
=
0
;
dragonDisplay
.
timeScale
=
0
;
...
@@ -1173,6 +1175,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1173,6 +1175,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// if (cc.assetManager.cacheManager) {
// if (cc.assetManager.cacheManager) {
// cc.assetManager.cacheManager.clearCache()
// cc.assetManager.cacheManager.clearCache()
// }
// }
}
}
onDestroy
()
{
onDestroy
()
{
...
...
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