Quantcast
Channel: Questions in topic: "temporary"
Browsing latest articles
Browse All 97 View Live
↧

storing the value in a temporary variable problem

Hello people, i want to make a pinball game fully in C#, i am using the gameion pinball template but rewrite it in C#. i run into the following problem when firing the pinball: if (CanUse == true) {...

View Article


Unity Custom Editor: Temporary objects

I am writing a custom editor for a feature in the game. During the course of using this editor, it creates several temporary gameObjects to help with visualization in the Scene viewport. Questions: 1....

View Article


Tramsform.position Consider storing temp variable C# problem

I'm having problems trying to figure out what's wrong with what I have. It says "'UnityEngine.Transform.position'. Consider storing the value in a temporary variable" and I tried doing just that and...

View Article

How important is it to wrap temp variables/objects in a "using" block?

I know that with C# garbage collection happens automatically. But I've read that it only happens when memory is needed. Therefore, your game might still be taking up a larger memory footprint than...

View Article

Assign a Material temporary (Will function in the built layer)

Hello, I am having trouble assigning a material temporary to a directory which will function in the built layer. I am trying to get the client assign a few pictures which it downloads (Coverd the...

View Article


Temporary boost

In my 2D vertical platformgame i want to give my player a temporary jump boost. im thinking something like. if(hit.gameObject.tag == "Boost") { **var jumpheight =*2.0;** yield.WaitForSeconds(5.0)...

View Article

Cannot modify a value type return value of...

I was following along a tutorial on Youtube but it was written in JS but i translated it to C# but i get that error. Here is my code: headBobStepCounter += Vector3.Distance(parentLastPos,...

View Article

Unity IOS(IPad2) auto exit app after loaded too many images

Hi, Do anyone know what is cause of auto exit after the app had load too many high resolution images? Your suggestion will be very appreciate. The function of the app is to load a super high resolution...

View Article


Add a temporary variable to an array

So I'm trying to add a temporary variable inside a function to an array. This variable is of a custom made class. Unfortunately I can't seem to get it to work. The array increases size but when I...

View Article


Buff/debuff system (Temporarily change variables)

Hello everyone! I'm trying to design a buff/debuff system for my game (Like in games such as World of Warcraft). My first approach was a class called Effect. This class has override-able methods that...

View Article

converting javascript to c#

Hey, I ran into a problem and I don't know how I can fix this, this task is easy to do in javascript, but for me it's quite harder in c# For an example of my problem I'll give you a part of the script...

View Article

Remove Temp/Beast folder

Hello, After the lightmap process with Beast, I end up with the temp folder adding about 3 times the data that the current project has. I'm pretty certain I can remove it and be fine, but before doing...

View Article

Deactivate 30 pro trial temporarily

I recently activated the 30 pro trial. Now I would need to make and official build which I previously have done with the free version. But because of the pro trial, I get the "trial version" watermark...

View Article


Get a var's value plus X without modifying?

My camera follows (looks at) a GameObject that needs to be at the Player's 0,0,0. However I want the camera to follow 5 units in front of this GameObject. No matter what I've tried, the camera always...

View Article

Consider storing in temporary variable error when stored in a temporary variable

I am trying to rotate the camera in my game using this code, Vector3 temp = MainCamera.transform.rotation.eulerAngles; temp.x = 50.31731f; temp.y = 90.0f; temp.z = 0.0f;...

View Article


Will Restoring my computer restore my scene?

I was working on my scene and I decided to stop and turn off my computer. I saved and turned off my computer (I know I saved, and even so I have been working on this scene for over a month and I opened...

View Article

Write to Temp folder in Editor using AssetDatabase

I want to use the Temp folder in the project folder for storing temporary assets that should be hidden, basically editor data that I saved to a scriptable object to survive recompiles. Anyway, it seems...

View Article


Warning on Setting Particle System Variable

I'm getting the following warning:> BCW0006: WARNING: Assignment to temporary. On this code: var gSteam: ParticleSystem; gSteam.emission.rate.constant = 6; Why would setting a particle system's...

View Article

Bool Temporary Variable in Enum c#

Hi there! Iv came across a small issue with one of my scripts. I have made a random level manipulator however I wish to make it more random. I know the logic behind this: make the last chosen equal to...

View Article

CreateAsset Moving file failed

Ok so I'm having an issue I can't find another report of. Every other Moving file failed either refer to other feature or to the csharp dll thingy. That's not my case ! So first of all when does it...

View Article

Help with the color change of a game object

Hello. The question I have is about making a temporary color change to an object. I made a honeycomb graphic in Blender and in unity I need that object to change from it's original coloring to black...

View Article


Modify a float value

Hello, I'm trying for some time now to modify a float value from the new post processing profile but I can't figure out how. I know i need to create a temporary variable but so far I've just used this...

View Article


how to prevent file from being deleted

i have an app wich i allow to read data from any folder (like the external sd card), to achiev it i create a txt inside the app folder with the path to the data folder, this works perfectly, but once i...

View Article

Temp Project Folder In Ramdisk Error

Problem: Unity provides no option to choose where to store "Temp" files. (Should Exist in Editor Preferences). When unity opens a project, it creates a "Temp" folder under the project. This "dirties"...

View Article

failed to create the folder for jobs running in an external process

My project has been working perfectly and I've done a few builds for testing. Now in the editor I get the error in the console: Failed to create the folder for jobs running in an external process at:...

View Article


AppleTV persistanceDataStorage

Hello everyone! We are developing app for AppleTV and try to figure out how to store data. We have some critical data which we need to store like data about authenticated user, then cached data like...

View Article

Where to save temporary files on Linux?

I'm developing a plugin for Unity which downloads files from a server. Normally I'd want to save them into `Application.temporaryCachePath`. However, I want to use a location which isn't specific for a...

View Article

What is the difference between Path.GetTempPath() vs...

What is the difference between Path.GetTempPath() vs Application.temporaryCachePath

View Article

How to save custom editor data?

Hello everyone. I have a custom editor. When disabling the editor OnDisable (), I want to save temporary temporary dataset (int, string) for it. Does the unity have built-in tools for this sort of thing?

View Article



How I can recovery a C# script(I found a TMP file)

Hi, I Just updated unity hub and then , when I launch the my project after closing , unity hub said my unity version of project not same with project , but it is. so I open it and then ... booom!...

View Article
Browsing latest articles
Browse All 97 View Live


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