Commit 8f84c5cd authored by liujiangnan's avatar liujiangnan

feat

parent b742047a
......@@ -70,6 +70,11 @@ export default class NewClass extends middleLayerBase {
if (video) {
cc.find("Canvas/Main Camera").getComponent(cc.Camera).backgroundColor = cc.color(0,0,0,0);
video.stayOnBottom = true;
setTimeout(() => {
cc.macro.ENABLE_TRANSPARENT_CANVAS = true;
}, 1000);
} 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