Categories
Game Creation Mastering Development

How to speed up script compilation?

Is there a way to speed up script compile time when I change something in VS then click on Unity? It takes 15 seconds. Is this normal?

Categories
Game Creation Mastering Development

C++ copy construct rvalue reference question

I’m learning the rvalue reference concept in c++. When testing the following code, I found the “fun” was called despite it not using fun(abc &&) to accept the temporary object(prvalue). class abc { }; void fun(abc &) { cout << 1111111 << endl; } void main() { fun(abc()); } output: 1111111 If this is allowed […]

Categories
Game Creation Mastering Development

Is Updating Sprite/Entity Movement Using Framerate Necessary?

Apologies if this is a dumb question I’m still new to this, but I’m trying to understand if calculations of sprite movements/hitboxes/etc. is necessary or is generally better than just using fixed values to calculate movement or events (i.e movement += velocity/framerate vs. movement += velocity/constant). The main reason I ask is that while following […]

Categories
Game Creation Mastering Development

Coroutine different behaviour when called from another script

I am quite new with game dev, specially with unity. In order to understand how it works, I decided to start small with a pong game. I have a Ball script, which in the Update() method move the ball depending to the speed, and if a player score, it increment a score field and reset […]

Categories
Game Creation Mastering Development

Getting array of points shaping curve from 2 vector3 points

What I want is to get path for DoTween method DoPath(), which as a parameter expects array of vectors shaping the direction of the path. I googled some stuff and found out nothing. Just think bezier curve is good idea but i dont even know how it works. Here is an ilustration of my problem […]

Categories
Game Creation Mastering Development

Getting array of points shaping curve from 2 vector3 points

What I want is to get path for DoTween method DoPath(), which as a parameter expects array of vectors shaping the direction of the path. I googled some stuff and found out nothing. Just think bezier curve is good idea but i dont even know how it works. Here is an ilustration of my problem […]

Categories
Game Creation Mastering Development

Getting array of points shaping curve from 2 vector3 points

What I want is to get path for DoTween method DoPath(), which as a parameter expects array of vectors shaping the direction of the path. I googled some stuff and found out nothing. Just think bezier curve is good idea but i dont even know how it works. Here is an ilustration of my problem […]

Categories
Game Creation Mastering Development

Creating runtime mesh colliders in Unreal Engine 4

I want to create several mesh colliders in game at runtime. By mesh colliders I mean “complex collision”. I do not want these meshes to be rendered. I also want these meshes to be stored in single actor for easy handling. Is there any existing class or plugin that does this. I have checked procedural […]

Categories
Game Creation Mastering Development

How many triangles should I expect to be able to render in a second?

Assuming that I’m doing everything right and all I’m doing when I render my scene is going through all the vertex arrays that I want to render, how many triangles should I expect to be able to render compared to the FLOPS of the GPU I am using? In my particular case, I’m trying to […]

Categories
Game Creation Mastering Development

How to pass an argument with ref keyword to a local funtion/ how to work around it?

Unity 2019.3 I am writing a few extension methods to make my life a little bit easier, but this one is bogging me down. I am loading stuff with Unity’s Addressable system, and I would like use it by extension methods. I am passing in my variables (reference type & value type, doesn’t matter) to […]