This commit is contained in:
changyunjia
2026-06-02 17:38:08 +08:00
parent 9ee7fabfc1
commit 1e442c6bb3
+8 -8
View File
@@ -150,13 +150,13 @@
[self.window.rootViewController.view addSubview:custom]; [self.window.rootViewController.view addSubview:custom];
//
UnityFramework *unityFramework = [UnityFramework getInstance]; // UnityFramework *unityFramework = [UnityFramework getInstance];
UnityAppController *appController = [unityFramework appController]; // UnityAppController *appController = [unityFramework appController];
//
// 获取 Unity 根节点视图 // // 获取 Unity 根节点视图
UIView *unityRootView = [appController rootView]; // UIView *unityRootView = [appController rootView];
unityRootView.alpha=0.2; // unityRootView.alpha=0.2;
} }
-(void)initWebview:(int)type{ -(void)initWebview:(int)type{
@@ -307,7 +307,7 @@
[self addSubview:webviews[type]]; [self addSubview:webviews[type]];
webviews[type].allowsLinkPreview = NO; webviews[type].allowsLinkPreview = NO;
[self insertSubview:webviews[type] atIndex:0]; [self insertSubview:webviews[type] atIndex:0];
webviews[type] .alpha=0.5; // webviews[type] .alpha=0.5;
// if(type==2){ // if(type==2){
// webview_1 = [[WKWebView alloc] initWithFrame:self.frame configuration:webViewConfiguration]; // webview_1 = [[WKWebView alloc] initWithFrame:self.frame configuration:webViewConfiguration];