Null exception when trying to enable scripts
I have to two scripts Movement and ChangeControl. I am trying to enable and disable Movement.cs from ChangeControl.cs when LeftShift or RightShift is presses. When I press the key, I get a runtime null...
View ArticleCurrent audio file being used by the clip
is there anyway to get the name of the audio file that is currently being played by a particular audio source ?
View ArticleAccessing animation events from C# script
I have an animation fbx which has events added to it. I'm developing a tool and I need to check if this fbx has animation events in it or not. So is there a way to access this info without...
View ArticleHighlighting the folders in the path to prefab
I have developed a tool that scans through all the prefabs and checks if it has the required components and stuff. If the prefab is missing something, I'll display its name using a GUILayout.TextField....
View ArticleWarping GUILayout.Buttons to the next line
I am developing a unity tool and I have about six buttons in one row. But as the window size decreases, I want to start putting the buttons into the next row. Like how text automatically goes to next...
View ArticleDetecting GUI window close
Is there a way to detect when a GUI window has been closed ? I am building an editor tool and I need to perform some actions after the window has been closed. Ideally, if there is a callback or event...
View ArticleDetecting if Android/iOS device is already playing music
I want to stop the in-game music if the user is already playing some music when the game is launched. Is there a way to detect if music is being played already on the deivce? Thanks!
View ArticleDetecting device music on unity
I wrote a native android plugin to detect if the device is playing something when the game starts. But I think what Unity does is that it acquires the speakers when application is started and this...
View ArticleChanging clips using mixer snapshots
Is it possible to change audio clips using snapshots ? I want to have a transition between two different audio clips. I know snapshots can be used to have a transition between different effects but is...
View ArticleChanging the volume curve of dynamically added AudioSource
I am adding an audio source to a game object from code and I want to manipulate the custom volume curve of that audio source. I know I can switch between different types of curves but I want change the...
View ArticleSame audio mixer for multiple AudioSource
Hey! I am creating an audio source from code and I want to assign audio mixers for these sources. I have created an audio mixer and I am also able to assign to each source. But since multiple audio...
View ArticleNull exception when trying to enable scripts
I have to two scripts Movement and ChangeControl. I am trying to enable and disable Movement.cs from ChangeControl.cs when LeftShift or RightShift is presses. When I press the key, I get a runtime null...
View ArticleCurrent audio file being used by the clip
is there anyway to get the name of the audio file that is currently being played by a particular audio source ?
View ArticleAccessing animation events from C# script
I have an animation fbx which has events added to it. I'm developing a tool and I need to check if this fbx has animation events in it or not. So is there a way to access this info without...
View ArticleHighlighting the folders in the path to prefab
I have developed a tool that scans through all the prefabs and checks if it has the required components and stuff. If the prefab is missing something, I'll display its name using a GUILayout.TextField....
View ArticleWarping GUILayout.Buttons to the next line
I am developing a unity tool and I have about six buttons in one row. But as the window size decreases, I want to start putting the buttons into the next row. Like how text automatically goes to next...
View ArticleDetecting GUI window close
Is there a way to detect when a GUI window has been closed ? I am building an editor tool and I need to perform some actions after the window has been closed. Ideally, if there is a callback or event...
View ArticleDetecting if Android/iOS device is already playing music
I want to stop the in-game music if the user is already playing some music when the game is launched. Is there a way to detect if music is being played already on the deivce? Thanks!
View ArticleDetecting device music on unity
I wrote a native android plugin to detect if the device is playing something when the game starts. But I think what Unity does is that it acquires the speakers when application is started and this...
View ArticleChanging clips using mixer snapshots
Is it possible to change audio clips using snapshots ? I want to have a transition between two different audio clips. I know snapshots can be used to have a transition between different effects but is...
View Article
More Pages to Explore .....