Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Spots Filter Generator Module
#4
Hi

Thanks for sharing the solution.

Do you have any thoughts or suggestions about the SubArray struct?
To avoid such issues, I could hide SubArray.Array to the public, while providing an indexer:

Code:
        /// <summary>
        ///  Returns the array element at the given index
        /// </summary>
        public T this[int index]
        {
            get => Array[index];
            set => Array[index] = value;
        }

The issue with this being that SubArray, and the whole array pooling thing, are heavily orientated towards performance. So I prefer to keep the SubArray.Array public to allow for better performance. But I see that it can lead to confusion. I purposely named SubArray.Count that way, instead of Length, to avoid accidentally using the Length of SubArray.Array instead of the one of SubArray.
Anything thoughts?

PS: I will provide that indexer in the next update
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Custom Spots Filter Generator Module - by mercior - 03-09-2023, 05:41 PM
RE: Custom Spots Filter Generator Module - by _Aka_ - 03-10-2023, 10:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace deform mesh on volume spots Kokoriko49 1 2,327 06-09-2025, 06:49 PM
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 3,839 05-08-2025, 10:07 PM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 2,556 01-20-2025, 12:27 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,992 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: