Quantcast
Channel: Latest Questions by SinisterRainbow
Browsing all 18 articles
Browse latest View live

Best ways for two MonoBehaviour classes to communicate?

I come from a strong C++ background and work with other game engines, I just picked up Unity a couple days ago and run into the problem of separating out classes correctly. Specifically, I have a...

View Article



Removing Texture at Runtime Without replacing it

I'm pretty new to Unity still, I have a multi-layered material where I need to remove one of the textures of the material during runtime. I don't want to waste memory setting a new clear texture. Can...

View Article

Loading audioclips from a file

I have several oggs/ wavs in my resources folder - how do I assign these to an audio clip? Note: I do not want to make it file-scoped in my scripts, i want it in my audio class with the access i give...

View Article

Tiling partial textures in GUI

I'm just getting into Unity's GUI functionality and it seems like I can't easily tile a texture sheet that has multiple images (I store several odd shaped border types for instance in a 2x8 texture),...

View Article

Unity Debug Console - I want to input things during Runtime

I'd like to turn on/off debugging features in Unity during runtime to test for different features. Have I just been google incompetent or is there a way to do this? I'm assuming you cannot directly, so...

View Article


Encrypting save files logic question

I'd like to encrypt save game files, but haven't yet worked out a good way to go about it. If I generate a key for my crypto, where would I store this so that it is relatively safe? I realize there's...

View Article

Easy? Convert System.Type to UnityEngine.Component

I have a function where I'm returning a System.Type, and need to convert it into a Component. a) Is this possible, if so how b) Is it possible to return a Component instead from a function rather than...

View Article

Forcing a type conversion from an abstract class C#

I have a class of objects in an object pool that are all derived from an abstract class, but this is failing: //SUProjectile : Base abstract class //BeamProjectile : derived from SUProjectile...

View Article


Unity Animator Attached to all imports automatically?

All models I import into unity get the Animator attached to them - is there a way to shut this off? Usually I do FBX imports, with no animation selected - i've ignored it thus far but it's a bit...

View Article


Best ways for two MonoBehaviour classes to communicate?

I come from a strong C++ background and work with other game engines, I just picked up Unity a couple days ago and run into the problem of separating out classes correctly. Specifically, I have a...

View Article

Removing Texture at Runtime Without replacing it

I'm pretty new to Unity still, I have a multi-layered material where I need to remove one of the textures of the material during runtime. I don't want to waste memory setting a new clear texture. Can...

View Article

Loading audioclips from a file

I have several oggs/ wavs in my resources folder - how do I assign these to an audio clip? Note: I do not want to make it file-scoped in my scripts, i want it in my audio class with the access i give...

View Article

Tiling partial textures in GUI

I'm just getting into Unity's GUI functionality and it seems like I can't easily tile a texture sheet that has multiple images (I store several odd shaped border types for instance in a 2x8 texture),...

View Article


Unity Debug Console - I want to input things during Runtime

I'd like to turn on/off debugging features in Unity during runtime to test for different features. Have I just been google incompetent or is there a way to do this? I'm assuming you cannot directly, so...

View Article

Encrypting save files logic question

I'd like to encrypt save game files, but haven't yet worked out a good way to go about it. If I generate a key for my crypto, where would I store this so that it is relatively safe? I realize there's...

View Article


Easy? Convert System.Type to UnityEngine.Component

I have a function where I'm returning a System.Type, and need to convert it into a Component. a) Is this possible, if so how b) Is it possible to return a Component instead from a function rather than...

View Article

Forcing a type conversion from an abstract class C#

I have a class of objects in an object pool that are all derived from an abstract class, but this is failing: //SUProjectile : Base abstract class //BeamProjectile : derived from SUProjectile...

View Article


Unity Animator Attached to all imports automatically?

All models I import into unity get the Animator attached to them - is there a way to shut this off? Usually I do FBX imports, with no animation selected - i've ignored it thus far but it's a bit...

View Article
Browsing all 18 articles
Browse latest View live




Latest Images