- Home /
Question by
jacky06211 · Apr 22 at 07:16 AM ·
c#script error
Compiler error when using ArraySegment
I'm using VisualStudio 2022 community & unity 2020.3.33f1.
I wrote some code in a VS project without errors & coppied the them into unity folder and open them. Then:
it causes an error :
ArraySegment
doesn't containSlice()
.another error caused by`MyArrSegment[i]`, "[i]" causes error.
byte[]
can't automaticly cast toArraySegment<byte>
.
Is the language version too low? Can it be solved? Please help.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613055700im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
(Problem) Turning postprocessing on and off 0 Answers
Simple Coding Error Help - C# - Following Packt Book 1 Answer
GetComponent C# issue 1 Answer