#2 errors

1 messages · Page 1 of 1 (latest)

wraith escarp
#

Error 1: Can't implement accessor

Transform ICanvasElement.get_transform()
        {
            return base.transform;
        }

Error 2: Protected method

protected TMP_UpdateManager()
        {
            Camera.onPreCull = (Camera.CameraCallback)Delegate.Combine(Camera.onPreCull, new Camera.CameraCallback(OnCameraPreCull));
            RenderPipeline.BeginFrameRendering += OnBeginFrameRendering;
        }

I don't understand what these errors mean.

#

I have Unity in Visual Studio enabled, I tried fixing this, it fixed for a minute but didn't work again.

lapis crest
#

You are trying to access a method that is marked protected; that means it is not meant to be called from outside it's own class.

#

Which line is throwing the exception?

wraith escarp
#
RenderPipeline.BeginFrameRendering += OnBeginFrameRendering;
^
lapis crest
#

What is the definition for RenderPipeline.BeginFrameRendering?

wraith escarp
#

Hold on a sec

#
//
        // Summary:
        //     Calls the RenderPipelineManager.beginFrameRendering delegate.
        //
        // Parameters:
        //   context:
        //
        //   cameras:
        protected static void BeginFrameRendering(ScriptableRenderContext context, Camera[] cameras)
        {
            RenderPipelineManager.BeginFrameRendering(context, cameras);
        }
lapis crest
#

So, what this means is that BeginFrameRendering is to be used either within the RenderPipeline class, or by a class that extends the RenderPipeline lik this: public class MyRenderPipeline : RenderPipeline {}. Any other use is against the rules.

wraith escarp
#

So is there any way I can use this outside?

lapis crest
wraith escarp
#

Now I just need to figure out the first error

lapis crest
#

Transform ICanvasElement.get_transform() { this signature doesn't seem right to me. It has a sort of magic method quality to it.

#

Is this in a class?

wraith escarp
#

Nevermind it is in a class

lapis crest
#

Using an interface ICanvasElement makes no syntactic sense there. What are you trying to do?

wraith escarp
#

Fix all compiler errors so Unity can at least run

#

It keeps nagging me to fix them

lapis crest
#

Comment that out? It's literal gibberish with that signature.

wraith escarp
#

It still says there are build errors and the file that it says it has them says no issues found

lapis crest
#

Do you have any errors in Unity's console?

wraith escarp
#

Yup, I checked the erros from there

lapis crest
#

Use that to isolate what the error is. Visual Studio will report syntactic errors, but Unity ultimately acts as your compiler, so it reports the semantic errors that you need to follow.

wraith escarp
#

I got redirected to the UnityEngine.Experimental.Rendering

#

It has some unknown refrences which since I'm a beginner, I don't know what it is

#

It's in ShadowUtils.cs

lapis crest
#

I genuinely don't know what you could be doing in there as a beginner, if I'm frank.

wraith escarp
#

It just appears for no reason so I'm about to comment it off

#

internal sealed class URTzHSKwzEoQfklCtmzFbLYxtJZ : IDisposable, IControllerElementTarget, IPoolableObject, IPoolableObject_Internal
And now my error is at this entire sealed class.

lapis crest
wraith escarp
#

I didn't even come close to making it

#

Probably some obfuscated stuff

lapis crest
#

If I had to guess, you downloaded something from the asset store?

wraith escarp
#

I didn't even come close to using anything but the editor

#

I'm using template code

lapis crest
wraith escarp
#

yup

#

Well hopefully I could fix this completely

lapis crest
wraith escarp
#

I am trying to make a modification of a template