demo: fix warning
parent
1b678c68c6
commit
5f255ec6cd
Assets/Demo/Cartoon FX & War FX Demo
|
@ -80,7 +80,11 @@ namespace Coffee.UIExtensions.Demo
|
|||
.SelectMany(x => x.GetTypes())
|
||||
.FirstOrDefault(x => x.Name == typeName);
|
||||
|
||||
#if UNITY_2023_2_OR_NEWER
|
||||
return type == null ? null : FindFirstObjectByType(type);
|
||||
#else
|
||||
return type == null ? null : FindObjectOfType(type);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void SetCanvasWidth(int width)
|
||||
|
|
Loading…
Reference in New Issue