Files
cocos4/editor/inspector/assets/texture/index.js
T
袁炜海 95105db4c8 feat: inspector/texture/ Comparison of the differences between atlas and useData regarding the configuration of filter (#15203)
* feat: inspector/texture/ Comparison of the differences between atlas and useData regarding the configuration of filter

* feat: update color
2023-06-07 09:33:57 +08:00

34 lines
757 B
JavaScript

'use strict';
const texture = require('./texture');
exports.template = texture.template;
exports.style = texture.style;
exports.$ = texture.$;
const Elements = texture.Elements;
exports.methods = texture.methods;
exports.ready = texture.ready;
exports.update = function(assetList, metaList, parentAssetList) {
this.assetList = assetList;
this.metaList = metaList;
this.asset = assetList[0];
this.meta = metaList[0];
this.parentAssetList = parentAssetList;
this.userData = this.meta.userData;
this.userDataList = this.metaList.map((item) => item.userData);
for (const prop in Elements) {
const element = Elements[prop];
if (element.update) {
element.update.call(this);
}
}
};