|
|
@@ -617,7 +617,7 @@ public partial class ScreenLocate : MonoBehaviour
|
|
|
}
|
|
|
public void OnLocateScreenEnter()
|
|
|
{
|
|
|
- DefaultResolutionIndex = (int)(InfraredDemoMain?.ResolutionIndex); // 记录一下进入前的分辨率(游戏场景的分辨率,比识别时更低)
|
|
|
+ DefaultResolutionIndex = InfraredDemoMain?.ResolutionIndex ?? 0; // 记录一下进入前的分辨率(游戏场景的分辨率,比识别时更低)
|
|
|
InfraredDemoMain?.SetResolutionNew(HighScreenLocateResolutionIndex);
|
|
|
CreateUVCTexture2DIfNeeded();
|
|
|
}
|