Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TheAlbinoAmigo on February 12, 2022, 03:56:15 PM

Title: [SOLVED] CS0311 Error on 'UiCanvasEnableRaycast.cs' with Unity 2021.2.7f1
Post by: TheAlbinoAmigo on February 12, 2022, 03:56:15 PM
EDIT: I'm an absolute tool. I'll leave this up in case someone in the future needs to see it... I accidentally created a new public class called... MonoBehaviour. It pretty much broke everything. Yeah, don't do that.

Hi there,

I've been building in a project with this version of Unity for a few weeks now, just now got this error even though I haven't used or edited the action in any way (I don't even have any UI elements to work with as yet):

Assets\PlayMaker\Actions\UI\Canvas\UiCanvasEnableRaycast.cs(9,15): error CS0311: The type 'HutongGames.PlayMaker.PlayMakerCanvasRaycastFilterProxy' cannot be used as type parameter 'T' in the generic type or method 'ComponentAction<T>'. There is no implicit reference conversion from 'HutongGames.PlayMaker.PlayMakerCanvasRaycastFilterProxy' to 'UnityEngine.Component'.

Anyone got any ideas?

Best,
Albino