Quantcast
Channel: Questions in topic: "temporary"
Browsing all 97 articles
Browse latest View live
↧

DragRigidBody Lock Axis on movement

I am using DragRigidBody to move my game object across a board which works fine. I have locked out the Y axis, so this allows movement in the x and z axis, however what I want to constrain all movement...

View Article


Make temporal changes to a scene state

Hi all! I was developing a cutscene editor which operates mostly in edit time. When the editor opens I want to have a special view of the scene where all changes made by the cutscene will be reseted...

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


how to i increase a number temporally

so i have this script and i wana add running to it. i tried if input.getbuttondown but it not gona work like this. what do i do to get the number to go back to what it was after the button is released....

View Article

Reduce ConstantForce value after specified time. WaitForSeconds()?

heyhey again, another question!previously, i got help with manipulating the constantforce value on my object, upon entering a trigger. now, i'm trying to go beyond that, and do an additional...

View Article

make good way to call function from update

Well here is a script where i try to add an effect to game that makes player see how score is added.... There is only one way how to add to real score - using tempScore which is temporary score where...

View Article

tempory save a gameobject?

In my game when the player is hit gonna become a ragdoll then after a few secunds he become back to normal again, and i need to save all the variables in the player. So i can turn off all scripts and...

View Article


BCW0006: WARNING: Assignment to temporary.

When the compiler goes through this javascript code, it gives me the warning "BCW0006: WARNING: Assignment to temporary." when I try to assign the z value of a Vector3 the only reference (useful) I...

View Article

DragRigidBody Lock Axis on movement

I am using DragRigidBody to move my game object across a board which works fine. I have locked out the Y axis, so this allows movement in the x and z axis, however what I want to constrain all movement...

View Article


Make temporal changes to a scene state

Hi all! I was developing a cutscene editor which operates mostly in edit time. When the editor opens I want to have a special view of the scene where all changes made by the cutscene will be reseted...

View Article

Input - allocates temporary variable

What does it mean when the documentation refers to whether something "does not allocate temporary variables" vs "allocates temporary variables"...

View Article


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


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