Quantcast
Channel: Questions in topic: "namespace"
Browsing all 398 articles
Browse latest View live
↧

Silly question - Adding to a class (GameObject)?

Is it possible to create my own custom functions in GameObject (or even Mathf)? Like if I wanted to do something like GameObject.GetChildrenObjects(gameObject) and it would do as it suggests, is that...

View Article


Modify a variable between namespaces

Hi everyone. My question is simple, and I suppose the answer is simple, but I haven't found out the solution yet. I'm using Unity 5.0.2 and doing some practices with the new first person controller. I...

View Article


Can't access another script, think it may be due to namespace/public class ?

I'm having trouble accessing another script in my project. This is the script I want to access - using System; using UnityEngine; namespace UnityStandardAssets.ImageEffects { [ExecuteInEditMode]...

View Article

Namespaces usage recommendation

I'm used to create a lot of small classes and I want to organize them properly. Namespaces are best way to keep project clean and I believe that only automatization can actually help me) I wrote a...

View Article

Moved assets out of Resources folder: the namespace already contains a...

I had my entire project in the resources folder. I moved it all out and now I get a bunch of error cs0101: The namespace x already contains a definition for y errors in dozens of scripts, my own...

View Article


Does namespace relate to a location on disk or in the project

I'm an experienced developer but new to Unity. I'm using Unity 5.0.1 and working with the CharacterThirdPersonAI scene from the sample pack. I added a button to the scene to instantiate multiple...

View Article

C# - Better Way of Using Namespaces

I am writing a card game where each card has its own script. Each of these scripts inherits from my Card class which in turn inherits from MonoBehavior. My problem is that each card script needs to use...

View Article

Configure default namespace for C# scripts in project?

I found [some mention][1] from **3 years ago** that this option was planned for Unity 2.> Project specific configuration including namespace configuration is definitely planned for 2.0. Was this...

View Article


Can not load script from AssetBundle which has namespace.

I am using the unity5.0.1f1, and I met an error when I attach a script with namespace onto a GameObject in a scene, and I load the scene from AssetBundle in unity5.x, the script is missing reference....

View Article


Nested Namespaces

Just looking for a quick clarification here. I'm going through the scripting tutorials, and in the namespace lesson, it said that nested namespaces, such as System.Collections, implicitly included the...

View Article

Unable to access custom editor namespace from runtime assembly

Hi guys I have a utility class in the editor assembly: namespace Hydra.HydraCommon.Editor.Utils { public static class ScriptableObjectUtils {} } And I'm trying to access it via the runtime assembly:...

View Article

A namespace can only contain types and namespace declarations

Hello, I'm trying to integrate adbuddiz in my Android app. I've looked at this tutorial that shows how to integrate it: Part 1: https://www.youtube.com/watch?v=YU8DK9665ms Part 2:...

View Article

Two assets using the same namespace..what to do?

Hello, I downloaded some assets in the Asset Store: - a city - a character The problem is that each of them have a "CameraController.cs" script using the same namespace, I guess. Here is the error I...

View Article


The type or namespace name `GridSelection' could not be found. Are you...

Ive looked online for this error and people have stated several things such as moving your scripts to a folder in your root called "Editor". Ive done that and now several more of my scripts just broke...

View Article

namespace 'global::' already contains a definition for 'EnemyMovement'

I am making the survival game made by Unity at their 2014 convention, using Unity 4.6, and I am getting error CS0101: The namespace 'global::' already contains a definition for 'EnemyMovement'. My code...

View Article


Error: 'WiiU' does not exist in the namespace `UnityEngine`

I have the Wii U SDK, and I tried loading it with a series of the example code for various wii u stuff (nunchuck, rumble, pad screen, etc) and i get a bunch of errors saying:> error CS0234: The type...

View Article

namespace UnityStandardAssets.Characters.FirstPerson

I can't get any script component from other object. I got this error:> error CS0246: The type or namespace name `MyScript' could not be found. Are you missing a using directive or an assembly...

View Article


Modify Standard Asset --> MultipurposeCameraRig (add manual rotation)

I'm building a racing game, and I'm trying to add a manual, orbit-rotation to the Multipurpose Camera Rig prefab in the *new* Standard Assets package. In other words, if the Player presses any camera...

View Article

Im a beginner of Soomla, I have a lot of question:what to do next after...

hello I have downloaded your plug-in ive watch the soomla tutorials but I feel its not enough. what do I do now when I created my own script (counter part of MuffinRushAssets.cs) I have a lot of...

View Article

The type or namespace name could not be found. Are you missing a using...

I found similar posts here and on StackExchange, but they were different from my problem and provided no solution. I need to know how to reference another script from inside this Unity...

View Article
Browsing all 398 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>