1
This commit is contained in:
21
Assets/Artists/Scripts/HotFix/WorldCanvasCameraService.cs
Normal file
21
Assets/Artists/Scripts/HotFix/WorldCanvasCameraService.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITFALL.HotFix
|
||||
{
|
||||
public class WorldCanvasCameraService : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Canvas canvas;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (!canvas.worldCamera)
|
||||
{
|
||||
canvas.worldCamera = Camera.main;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user