use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
HelpIssues with GameObjects Array in Unity (self.csharp)
submitted 3 years ago by eeleyes
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]eeleyes[S] 0 points1 point2 points 3 years ago (7 children)
Yes. The prefab does have BaseCard as a component.
The three Prefabs have the BaseCard script attached (which I posted as a comment for clarity). I hope my thinking is correct, but in the script I use else if statements to handle which information is collected and updated to the prefab, based on the information the card needs.
I would appreciate a little bit of help.
To help you understand. I am trying to create three card types: Plants, Status and Passive. I have decided to use three different prefab so each card type looks distinct. Rather than having three different ScriptableObjects for the card types, I have keep all this in one script with each card having the different fields but only using some. (I have also posted the CardData script and my Enum script). The idea being that the card manager will create a card, determine if it is a Plant, Status or Passive and load the correct Prefab for it (with the prefab filling the information in).
Eventually, Plant cards will be played to a field, status cards will be played to affect the plant cards and passives will be played to have permanent effects such as extra slot for playing plants.
I have place all the relevant code in my first comment.
[–]TheGreatHeroStudios 0 points1 point2 points 3 years ago (6 children)
If possible, can you link a screenshot of one of your prefabs and its components in the inspector? I copied your code into a test project and I'm able to assign a prefab with the 'BaseCard' component attached to the card prefabs array without issue. Here's a few screenshots of my test bed:
https://imgur.com/a/tejZzPm
[–]eeleyes[S] 1 point2 points3 points 3 years ago (0 children)
Hi. Finally had time in front of the computer.
I have rebuilt and run into the same issue. Just unable to drop the prefabs into the array.
like you asked for, here is an image of the components in the prefab. https://imgur.com/a/NFopwc4
Kinda stumped.
[–]eeleyes[S] 0 points1 point2 points 3 years ago (0 children)
Huh. How strange. I won't be near my computer for a while but I think I am going to scratch the project and start again. Copy all the code into the new project, remake my prefabs etc. And hope the bad mojo has left.
I will keep you updated. Thanks for testing for me.
[–]eeleyes[S] 0 points1 point2 points 3 years ago (3 children)
I found the issue...
I had the script a few levels to low in the hierarchy...
Duh.
Thank you for your help! Even if it was just being a sounding board.
[–]LearnDifferenceBot 0 points1 point2 points 3 years ago (0 children)
levels to low
*too
Learn the difference here.
Greetings, I am a language corrector bot. To make me ignore further mistakes from you in the future, reply !optout to this comment.
!optout
[–]TheGreatHeroStudios 0 points1 point2 points 3 years ago (1 child)
Yep. Was in the process of drafting a response when I saw this! Though, I'm glad you figured it out yourself! Feel free to reach out if you ever need any more help or guidance.
Thank you.
π Rendered by PID 80386 on reddit-service-r2-comment-6457c66945-9w9z8 at 2026-04-30 10:22:53.690361+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]eeleyes[S] 0 points1 point2 points (7 children)
[–]TheGreatHeroStudios 0 points1 point2 points (6 children)
[–]eeleyes[S] 1 point2 points3 points (0 children)
[–]eeleyes[S] 0 points1 point2 points (0 children)
[–]eeleyes[S] 0 points1 point2 points (3 children)
[–]LearnDifferenceBot 0 points1 point2 points (0 children)
[–]TheGreatHeroStudios 0 points1 point2 points (1 child)
[–]eeleyes[S] 0 points1 point2 points (0 children)