Quantcast
Channel: Latest Questions by kubci98
Browsing latest articles
Browse All 15 View Live

Framerate independent function

Is there any function like Update but framerate independent? I need it for my shooting script. With nextFire = Time.time + fireRate * Time.deltaTime; you can only slow shooting down, you can't make it...

View Article



Water drops camera effect

Hello, i am making a FPS and i want to create a water drops image effect, like in Metro LL. ![alt text][1] How could i script this? Thanks in advance! [1]:...

View Article

Sprite renderer lit by light

Is there any way how to lit 2d sprite with light? Using diffuse material doesn't work and I don't think that using plane and mesh renderer is good solution.

View Article

Slice background texture for OnGUI button

Hello, I would like to know, how to "slice" texture for a legacy (OnGUI) GUI button. I did set borders on this texture, but i don't know how to set it to be sliced (like basic GUI.Button texture)....

View Article

Raycast 2D doesn't hit colliders after 1 unit

Hello, I am using 2D raycasting in my 2D tower defense game for a shooting tower to shoot and deal damage to enemies. However, raycast hits targets only in distance

View Article


StringSplitOptions.RemoveEmptyEntries - Unknown identifier

Hello, I am using a String to save scores for my levels (PlayerPrefs). As PlayerPrefs doesn't work with arrays, I just convert all of these into one String to this form:...

View Article

Start a Editor script only after a successfull build

I need to start a function after only a successful build. I have tried using the OnPostprocessBuild function from IPostprocessBuildWithReport, however as this is called during the build process and not...

View Article

Hide build warnings from a certain folder

I am using the GoogleARCore module in my game, which as it seems uses some obsolete methods and thus creates warnings during the build. Now these are obviously warnings that I would like to fix, so I...

View Article


Mirror animation played with Playables on runtime

I am using SimpleAnimation component ( https://blogs.unity3d.com/2017/11/28/introducing-the-simple-animation-component/ ) to have a character perform a longer animation (a dance). Now I do want to have...

View Article

Browsing latest articles
Browse All 15 View Live




Latest Images