Carefully check your capitalization and spelling. Debug.Log has the wrong capitalization, and OnCollisionEnter is misspelled (which would not generate an error, but it wouldn’t work either).
I have the same problem too, with these two scripts:
using UnityEditor;
using UnityEngine;
public static class HandleUtilityProxy
{
public static GameObject FindSelectionBase(GameObject gameObject)
{
return HandleUtility.FindSelectionBase(gameObject);
}
}
and:
using UnityEditor;
using UnityEngine;
public static class AudioUtilProxy
{
public static void PlayClip(AudioClip audioClip)
{
AudioUtil.PlayClip(audioClip);
I hate to be pedantic but you spelt collision wrong for one.
Check and double check your spelling when writing code, the slightest typo and it won’t thank you, as I discovered doing a “Hello World” C# tutorial last week from a book.
Im having a similar issue this is my script and i do not know how to fix it.Assets\PumkinsAvatarTools\Scripts\Editor\Destroyers\LegacyDestroyer.cs(98,28): error CS0117: ‘Helpers’ does not contain a definition for ‘DestroyMissingScriptsInGameObject’ and this is the script where it tells me it is.
var ts = avatar.GetComponentsInChildren<Transform>(true);
foreach(var t in ts)
{
if(Helpers.DestroyMissingScriptsInGameObject(t.gameObject))
PumkinsAvatarTools.Log(Strings.Log.hasMissingScriptDestroying, LogType.Log, Helpers.GetTransformPath(t, avatar.transform));
}