Quantcast
Channel: Answers by "lodendsg"
Browsing latest articles
Browse All 102 View Live

Answer by lodendsg

Take a look at Steamworks.NET http://steamworks.github.io/installation/ I haven't used it yet my self but seems the most direct approach; I do see some traffic on its Issues forum so I assume it is...

View Article



Answer by lodendsg

There is also Steamworks.NET which has Unity package under its install page http://steamworks.github.io/ I took a look at Ludosity's Steamworks Wrapper as well but wasn't sure it was still supported so...

View Article

Answer by lodendsg

Ran into this one my self and found this post first then stumbled upon the following in the Unity docs http://docs.unity3d.com/ScriptReference/Display.Activate.html Display.Activate(); seems like the...

View Article

Answer by lodendsg

An old question but it came up high in my list when I searched for a similar solution. The answer I came to is documented here http://docs.unity3d.com/ScriptReference/Display.Activate.html

View Article

Answer by lodendsg

Just for note for people finding this via google search, The current 'Best Answer' doesn't seem to be updated anymore. The following however does https://steamworks.github.io/ That contains a Unity...

View Article


Answer by lodendsg

KaletheQuick's reply is a solid answer if your game has a single scale e.g. if you only ever play from a very far distance camera view. We are also working on a space game and have need of very long...

View Article

Answer by lodendsg

I have been looking at similar my self In terms of generating the areas its a matter of defining the area around a 'system' in the case of Stellaris. So each system is a node, then we draw a triangle...

View Article

Answer by lodendsg

Just for note when you want a UI element to face the same direction as a given camera its better to say transform.rotation = camera.rotation If you set it to 'look at' the camera its going to look at...

View Article


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

Answer by lodendsg

To find the heading to any vector from another its simply heading = subject - self; So the heading vector (a vector which is in the direction of the subject from your self and has a length equal to the...

View Article



Answer by lodendsg

As noted there are services such as - PlayFab (Microsoft based) - GameLift (Amazon based) - GameSparks - Photon - etc All of these have some level of "developer" capacity that lets you get started for...

View Article
Browsing latest articles
Browse All 102 View Live


Latest Images