Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creting SplineControllers thru code generating errors
#6
(06-01-2020, 11:29 AM)_Aka_ Wrote: What do you mean by unexpected results?
To clarify:
Code:
someEvent?.Invoke(someEventArguments)
is a shorter way to write

Code:
if(someEvent!= null)

someEvent.Invoke(someEventArguments)
So what will happen is that all events will be ignored in the first frame of existence of the controller, while the event is null, but will be available again starting from the second frame. Is this matching the unexpected result you mentionned, or is it something else?

Correct. Above resolves InvokeEventHandler related errors. But I'm still getting errors at Initialize.. should I add ? to it as well? 

From this: onInitialized.Invoke(this);

to this: onInitialized?.Invoke(this);
Reply


Messages In This Thread
RE: Creting SplineControllers thru code generating errors - by curvyuser007 - 06-07-2020, 04:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Errors in Built Application in CurvySplineSegment TdayMFG 7 3,303 04-13-2025, 09:24 AM
Last Post: _Aka_
  Updated package in 2022 LTS resulted in multiple errors scr33ner 2 1,694 01-13-2025, 09:32 AM
Last Post: _Aka_
  Small errors in end tangents, by davelloyd _Aka_ 0 942 01-07-2025, 11:14 AM
Last Post: _Aka_
  Playmaker setup errors and missing scripts? justifun 9 6,406 08-06-2024, 09:41 AM
Last Post: _Aka_

Forum Jump: