Commit 01199e78 authored by liujiangnan's avatar liujiangnan

feat

parent 644435aa
......@@ -66,16 +66,16 @@ export default class NewClass extends middleLayerBase {
}
setVideoToBottom() {
const videos = cc.find("Canvas").getComponentsInChildren(cc.VideoPlayer);
if (videos.length > 0) {
for (let i = 0; i < videos.length; i++) {
const video = videos[i];
cc.find("Canvas/Main Camera").getComponent(cc.Camera).backgroundColor = cc.color(0,0,0,0);
video.stayOnBottom = true;
}
} else {
// cc.macro.ENABLE_TRANSPARENT_CANVAS = false;
}
// const videos = cc.find("Canvas").getComponentsInChildren(cc.VideoPlayer);
// if (videos.length > 0) {
// for (let i = 0; i < videos.length; i++) {
// const video = videos[i];
// cc.find("Canvas/Main Camera").getComponent(cc.Camera).backgroundColor = cc.color(0,0,0,0);
// video.stayOnBottom = true;
// }
// } else {
// // cc.macro.ENABLE_TRANSPARENT_CANVAS = false;
// }
}
tipsTween = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment