Commit edd59607 authored by liujiangnan's avatar liujiangnan

debug

parent 0008a5ef
...@@ -67,10 +67,14 @@ export default class NewClass extends middleLayerBase { ...@@ -67,10 +67,14 @@ export default class NewClass extends middleLayerBase {
setVideoToBottom() { setVideoToBottom() {
const videos = cc.find("Canvas").getComponentsInChildren(cc.VideoPlayer); const videos = cc.find("Canvas").getComponentsInChildren(cc.VideoPlayer);
for (let i = 0; i < videos.length; i++) { if (videos.length > 0) {
const video = videos[i]; for (let i = 0; i < videos.length; i++) {
cc.find("Canvas/Main Camera").getComponent(cc.Camera).backgroundColor = cc.color(0,0,0,0); const video = videos[i];
video.stayOnBottom = true; 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;
} }
} }
......
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