Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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
middleLayer_for_debug
Commits
55da5f92
Commit
55da5f92
authored
Oct 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 释放资源的代码
parent
18ee85bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
2 deletions
+99
-2
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+77
-2
Destroyer.js
assets/middleLayer_for_debug/script/Destroyer.js
+13
-0
Destroyer.js.meta
assets/middleLayer_for_debug/script/Destroyer.js.meta
+9
-0
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
55da5f92
...
@@ -324,15 +324,18 @@
...
@@ -324,15 +324,18 @@
},
},
{
{
"__id__": 222
"__id__": 222
},
{
"__id__": 224
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 22
4
"__id__": 22
6
},
},
{
{
"__id__": 22
5
"__id__": 22
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -10928,6 +10931,78 @@
...
@@ -10928,6 +10931,78 @@
"_atlas": null,
"_atlas": null,
"_id": "51nBXWjLpNUIamFPlMloSh"
"_id": "51nBXWjLpNUIamFPlMloSh"
},
},
{
"__type__": "cc.Node",
"_name": "Destroyer",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 225
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "86SJcyXClP7YiYvVyxTK6m"
},
{
"__type__": "8de31/QRmtJB70uxA6JCYx9",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 224
},
"_enabled": true,
"_id": "c8RSZKHRJO95/RfIMIkSA5"
},
{
{
"__type__": "cc.Widget",
"__type__": "cc.Widget",
"_name": "",
"_name": "",
...
...
assets/middleLayer_for_debug/script/Destroyer.js
0 → 100644
View file @
55da5f92
cc
.
Class
({
extends
:
cc
.
Component
,
start
()
{
this
.
middleLayer
=
cc
.
find
(
'
middleLayer
'
).
getComponent
(
'
middleLayer
'
);
},
onDestroy
()
{
console
.
log
(
'
喵喵喵: destroyer onDestroy
'
);
this
.
middleLayer
.
clearDragonDisplayAssetList
();
}
});
assets/middleLayer_for_debug/script/Destroyer.js.meta
0 → 100644
View file @
55da5f92
{
"ver": "1.0.8",
"uuid": "8de31fd0-466b-4907-bd2e-c40e89098c7d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
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