BCE0023 Error
The got this error... BCE0023: No appropriate version of 'UnityEngine.Component.GetComponentInChildren' for the argument list '(Pistol)' was found. ...Error I tried to Google it but couldn't find a...
View ArticleC# find class file path for any class
I have looked all over for this, but to no avail. What I want to do is the following: determine the path of the class file in which to find a specified C# class (non-monobehaviour/ScriptableObject). I...
View ArticleThe problem when convert float to int
using UnityEngine; using System.Collections; public class Math : MonoBehaviour { int value = 10; float ratio1 = 1.1f; float ratio2 = 1.2f; float ratio3 = 1.3f; void Start () { Debug.Log (value *...
View ArticleThe problem when convert float to int
using UnityEngine; using System.Collections; public class Math : MonoBehaviour { int value = 10; float ratio1 = 1.1f; float ratio2 = 1.2f; float ratio3 = 1.3f; void Start () { Debug.Log (value *...
View Articlelist.Add not accepting new class as instance?
Ok so I am trying to create a save load feature. Still. I am trying to save a list of classes that define the name, position, and rotation of the components. But for some reason when I run it in unity...
View ArticlePlay sound by pressing button
I need help. This is script: using UnityEngine; using System.Collections; public class FS : MonoBehaviour { public AudioClip MyAudio; // Use this for initialization void Start () {...
View ArticleHow to Substitute Coroutine in non-MonoBehaviour Class?
Hi, what happen is, I have a Weapon Class, which is not a Monobehaviour. The Weapon has Internal Battery that recharge itself over time. I need to use control how fast it recharge via rechargeRate;...
View Articleevents and non-monobehaviour scripts.
how do i subscribe and unsubscribe to a static event in a non mono script? in mono scripts i know how we use OnEnable() and OnDisable(). as well as Start() and OnDestroy()
View ArticleReturn value from coroutine
I have this non-monobehaviour script where I have a function that needed to have a delay before it does what it needs to do. But since this cannot be done, I created a Monobehaviour script to do the...
View ArticleBCE0023 Error
The got this error... BCE0023: No appropriate version of 'UnityEngine.Component.GetComponentInChildren' for the argument list '(Pistol)' was found. ...Error I tried to Google it but couldn't find a...
View ArticleC# find class file path for any class
I have looked all over for this, but to no avail. What I want to do is the following: determine the path of the class file in which to find a specified C# class (non-monobehaviour/ScriptableObject). I...
View ArticleThe problem when convert float to int
using UnityEngine; using System.Collections; public class Math : MonoBehaviour { int value = 10; float ratio1 = 1.1f; float ratio2 = 1.2f; float ratio3 = 1.3f; void Start () { Debug.Log (value *...
View ArticleThe problem when convert float to int
using UnityEngine; using System.Collections; public class Math : MonoBehaviour { int value = 10; float ratio1 = 1.1f; float ratio2 = 1.2f; float ratio3 = 1.3f; void Start () { Debug.Log (value *...
View Articlelist.Add not accepting new class as instance?
Ok so I am trying to create a save load feature. Still. I am trying to save a list of classes that define the name, position, and rotation of the components. But for some reason when I run it in unity...
View ArticlePlay sound by pressing button
I need help. This is script: using UnityEngine; using System.Collections; public class FS : MonoBehaviour { public AudioClip MyAudio; // Use this for initialization void Start () {...
View ArticleHow to Substitute Coroutine in non-MonoBehaviour Class?
Hi, what happen is, I have a Weapon Class, which is not a Monobehaviour. The Weapon has Internal Battery that recharge itself over time. I need to use control how fast it recharge via rechargeRate;...
View Articleevents and non-monobehaviour scripts.
how do i subscribe and unsubscribe to a static event in a non mono script? in mono scripts i know how we use OnEnable() and OnDisable(). as well as Start() and OnDestroy()
View ArticleReturn value from coroutine
I have this non-monobehaviour script where I have a function that needed to have a delay before it does what it needs to do. But since this cannot be done, I created a Monobehaviour script to do the...
View Article
More Pages to Explore .....