Quantcast
Channel: Questions in topic: "datatype"
Browsing index pages (87 articles)
↧

Universal Data Type

Does there exist a 'universal' data type that includes *everything*? I'm aware of Objects that include most Unity things, but is there one that would include floats, ints and native types? I want to be...

View Article


Datatype with a lot of / 'infinite' amount of decimal places

i am looking to find a way to have a datatype that will display a lot of decimal places, like i am thinking in the hundreds/thousands for a project i have going on where i am making code that finds...

View Article


Best data type for many Gameobjects constantly switching?

I have a system where I keep many characters(Gameobjects) in a List. I have several Lists of characters, where the different groups defend different zones of the map. The player can move characters...

View Article

What data format should I store data in?

I want to store, access and edit large datasets Should I use relational data, XML, Json, or some other format for storing the data. What would Unity prefere in terms of performance? Thanks for any...

View Article

How can I store HUGE NUMBERS on unity? (256bit integer)

I tried using the BigInteger implementation for Unity, but it still overflows(Or maybe I used in a wrong way? Im not sure also, it can only do 20 characters of ints which is like 64 bits)... I need to...

View Article


Are ScriptableObjects good for non-visualised models?

Hi, I want to create a game using only GUI (panels, texts, buttons only), but there will be some models like heroes, monsters, items etc. I have hard time to decide how to code them, thinking about SO...

View Article

Button OnClick() function stops working after instantiating the prefab.

I'm working on a level editor system that uses an addon package called "SerializeHelper" (forgot the author's name, not my own work), and in my scene I have a Button that returns an integer to the...

View Article

How to change the data type used in a slider object?

Simply put, is there a way to change the minvalue, maxvalue, and value fields in a Slider gameobject to be doubles instead of floats? I need the capacity for larger numbers.

View Article


Setting up a New Data Type - Am I Doing Something Wrong?

In my current project, I'm trying to set up a new data type so I can get a script off a game object and enable/disable it on a keystroke. All of my syntax seems to be correct, except for the fact that...

View Article


Monodevelop doesn't recognize Vector3 and Transform (C#)

Hi guys, I have this problem with Unity. I used Unity before, but with JS. Now, I want to create some scripts using C#, yet Monodevelop doesn't recognize Unity data type like Vector3 and Transform

View Article

How to name a GameObject that is set active

Hi there guys. I would like to know how to name a GameObject that has been set active. To better explain: In this line of code : `GameObject room = (GameObject)Instantiate (availableRooms...

View Article

Tracking Turns in Turn Based Game Loop

I'm trying to keep track of what number turn it is in this turn based game I'm building. The game focuses a lot on simulation, and is expected to run for weeks, months, possibly years. Each "turn"...

View Article

Looking for the best datatype for a data storing problem

If i had a bunch of values that were possibly non-linear but ordered: 1, 3, 8, 12 and i added a new one, say 5 whats the best collection type (speed over anything else) that would store it between 3...

View Article


Singleton Problem

I'm new to coding in unity and wanted to transfer data from one script to another. I followed the tutorial i learned this from step by step(to the best of my knowledge) and I don't get any compiler...

View Article

Arrays with multiple data types C#

So I've heard this trick is pretty great at just handling data storage. And I wanna learn how to use it, but a few things I'm fuzzy on. I've read this answer,...

View Article


Managing In-Game Variables of Different Data Types

I am working on a system to track in-game variables in an RPG, which would be used in events and conditions. An example would be: *Bob gives you a quest to kill 5 vampires and also visit a shrine in...

View Article

Development of the shop?

Hi, guys. I want create a simple shop in my game. I have a lot of items. I want create something like arrays with two dates - Price and object and give each objects index array. I'm try using a...

View Article


Custom Datatypes for optimization?

**Situation:** I have a three dimensional volume filled with evenly placed nodes. At each node I want to store a few values ranging from 0 to 100. I could use a byte for each value, since using 101/256...

View Article

How does Unity figure out generic component type as Wall in Project: 2D...

Unity released a tutorial for 2d roguelike game a couple days ago: http://unity3d.com/learn/tutorials/projects/2d-roguelike In the project movement of both enemy and player units are handled by...

View Article

Storing insanely large numbers

I would like to get input from you on how to store insanely large numbers. By insanely large, I'm thinking of numbers that can go up to 100 zeros. I've read about BigInteger it's not available in .NET...

View Article
Browsing index pages (87 articles)


Latest Images