Quantcast
Channel: Questions in topic: "non-monobehaviour"
Browsing all 18 articles
Browse latest View live

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 Article



C# 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 Article

The 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 Article

The 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 Article

list.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 Article


Play 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 Article

How 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 Article

events 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 Article


Return 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


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 Article

C# 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 Article

The 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 Article

The 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 Article


list.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 Article

Play 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 Article


How 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 Article

events 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 Article


Return 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
Browsing all 18 articles
Browse latest View live




Latest Images