Skip to content

NullReferenceException - Camera Selection #11

Description

@justinwasilenko

Hi there.

Was hoping to give this a try for a project using Unity 6, and especially VR as the default URP Lens Flare system is not rendering in VR. So I am looking for a more performant Lens Flare system that I could use. I stumbled on your project, but checking our your example scene I get this error when selecting the camera with the MFLensFlareSimple component.

[Exception] NullReferenceException: Object reference not set to an instance of an object
MFLensflareEditor.OnInspectorGUI() at /MoonFlowLensFlare/MFLensFlare.cs:326
324: public override void OnInspectorGUI()
325: {
--> 326: EditorGUILayout.LabelField("Light Count: ", _target.FlareDict.Count.ToString());
327: base.OnInspectorGUI();
328: }

InspectorElement+<>c__DisplayClass79_0.b__0() at :0

GUIUtility.ProcessEvent()

Separate issue is that it only renders in one eye in VR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions