Quantcast
Browsing all 102 articles
Browse latest View live

Answer by lodendsg

I know this is an old question but its a problem that is ran into offten. The specific case we have is several hundred warships in a space game each with multiple turrets, each turret with multiple...

View Article


Answer by lodendsg

From what I understand (which is little at the moment) this error is thrown when you attempt to read or write to an element of an array in your job other than the one indicated by Index ... this only...

View Article


Answer by lodendsg

Assuming your rotating it such that its forward is facing its target then you can simply take its transform.forward as its direction. e.g. transform.position += transform.forward; The above will move...

View Article

Answer by lodendsg

You have choices, typically for a follow script you will simply get the heading to the target e.g. [Psedo code] var heading = targetTransform.position - myTransform.position; Now heading is a vector...

View Article

Answer by lodendsg

Change the last line there to theRB.AddForceAtPosition(nutSpeed); Add Force at Position is a member of Rigidbody not GameObject https://docs.unity3d.com/ScriptReference/Rigidbody.AddForceAtPosition.html

View Article


Answer by lodendsg

this should be easy enough. 1st you would want to make your UI element you could do this simply as a world canvas or ... well you have loads of options so I will leave that to you for now. 2nd you want...

View Article

Answer by lodendsg

Without seeing the graph I can only guess but periodic spikes are offten the cause of GC (Garbage Collector) to prevent/reduce them avoid/reduce GC allocations. As I recall there is a column in the...

View Article

Answer by lodendsg

It sounds like you might be missing the Visual Studio plugin for Unity. Do this ... in Visual Studio go to View in the main menu and see if you can see the Unity Project View option ... it should be...

View Article


Answer by lodendsg

Most common cause of that message is that Steam client isn't running. Steam must be up and logged in before the API can initialize. I assume it is running in your case and already logged in, so insure...

View Article


Answer by lodendsg

You can create instances of a MonoBehaviour using instantiate or via AddComponenet on the GameObject Instantiating Prefabs: https://docs.unity3d.com/Manual/InstantiatingPrefabs.html AddComponenet:...

View Article

Answer by lodendsg

Your question isn't clear and your code doesn't help clarify it for me but here is some info that might help you GameObject.GetComponenet() This is a costly method that can be called on game object to...

View Article

Answer by lodendsg

Note this is all off the top of my head but should get you going. If your just looking to calculate the first impact then it should be easy enough. If you did a sphere cast from the stricker current...

View Article

Answer by lodendsg

1st I strongly recomend Cinemachine https://unity.com/unity/features/editor/art-and-design/cinemachine This makes doing things like this with cameras a lot easier. If you have this then what you could...

View Article


Answer by lodendsg

I strongly suggest using Cinemachine https://unity.com/unity/features/editor/art-and-design/cinemachine You can install it from package manager, then simply create a vCam and set it to target you...

View Article

Answer by lodendsg

Reasons may be you have spaces in the names of the files or otherwise the name is not exsact .... "CameraController.cs" is what it should be not "Camera Controller.cs" The name must match exactly ......

View Article


Answer by lodendsg

This is still an issue with Unity We have seen this various times in the past, this most recent time it was an upgrade from 2020.2.1f to 2020.2.2f. For us the quickest way to fix it is to remove all...

View Article

Answer by lodendsg

This requires more explination than I think fits well in a forum https://learn.unity.com/tutorial/controlling-animation This Unity learn section should get you going though. It talks about setting up...

View Article


Answer by lodendsg

I would do it via a SyncVar of type string on the object I would then have the clients notify the server of what value should be applied via a command e.g. CmdSetStringValue(string data); The server...

View Article

Answer by lodendsg

EResult is the type that is retuned and you can find its full defintiion here https://partner.steamgames.com/doc/api/steam_api#EResult The message simply means the API is buisy and didn't take an...

View Article

Answer by lodendsg

you have update declared as void update() { if (itemObject == 0) { Debug.Log("Update works"); } } that is incorrect it must be capitalized ... casing matters in C# so it should be void Update() { if...

View Article
Browsing all 102 articles
Browse latest View live


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