C
C#

help

Add MonoBehaviour to object through script UNITY

ZZenternion10/16/2022
Is there a way to add a monobehaviour to an object through a different script.
UUUnknown User10/16/2022
Message Not Public
Sign In & Join Server To View
ZZenternion10/16/2022
Can you Because I can think of reasons
UUUnknown User10/16/2022
Message Not Public
Sign In & Join Server To View
MAAmartial art and microwave10/16/2022
AddComponent<T>
ZZenternion10/16/2022
Too simple for me to think of Thanks

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Builder pattern questionI have a Builder pattern for the options and since `domainName` and `domainContainer` are mandatory Count updating before it's supposed to```cs public void CheckCounts() { ReadCounts(); Console.WriArgumentOutOfRangeExceptionWhenever I run this I get the error: ```ArgumentOutOfRangeException: Index was out of range. Must beSpotify APII got a problem with Spotify API that i cannot solve. Got token, can call song info but cannot get m{ expected when creating new razor page.I created a blazor project, went to add a new page, write something in the @{} block and get red squhow to insert values from readline into an array?how to insert values from readline into an array?Help with WPF appIt's this microsoft store app https://apps.microsoft.com/store/detail/c-to-dart-transpiler/9P5BNFRSM[ASP.NET Core] Apply a selfsigned certificate to asp.net core?So i don't know exactly what i'm doing, but i'm trying to do the following: Let's say that i have tWhats the fastest way to write to the console [Answered]```csharp [StructLayout(LayoutKind.Explicit)] public struct CHAR_INFO { [FieldOffset(0)] internaSort items in list to most similar to a specific string [Answered]How can I sort items in a `List<string>` by similarity to a certain string?Tricky networking issueThis is less of a directly c# related question and more of a networking issue but I guess this is stHi, I have simple golf game in Unity and the ball keeps hitting invisible objects [Answered]well not every time, but i don't know where they come from. When i paused the game and checked scenePomello MySql not mapping Bools correctly?The screenshor shows a small snippet where i get a db entry, and set the bool property from false toany benefit to async?What's the benefit of async code? I see lots of examples that `await` on all the async calls. A proString alignmentI want to align the string "Set" so it doesn't get affected by the length change in the parentheses.Graphics.DrawLine and .DrawPolygon doesn't work properlyI need to draw a cat shape. If I set "zoom" (`k`) to 2, cat is drawn properly (img. 1) but when I se