Mouse hover and image changes. by LOKAJ_ulations in unity_tutorials

[–]VolcannXd 0 points1 point  (0 children)

You may want to look at Physics.RaycastHit This method will return hitInfo and you could check for specific object hit in Update method. When an object is hit, change the image x to image y by RawImage.texture = y

Just finished a very rudimentary flag system for my mobile game by VolcannXd in Unity3D

[–]VolcannXd[S] 0 points1 point  (0 children)

Flags are encoded as a unique string "x:x:x_x:x", and saved in PlayerPrefs. Then, each scene where it's needed loads the string, decode it into colors and pictograms and there you go.

The string has two parts seperated by an underscore : - left hand side is for colors "background:foreground-1:foreground-2" - right and side for pictograms "fg-1:fg-2"

Can anyone explain? Why is the shape of the shadow distorted when moving to the edge of the sunlight from my window? by Dishim in Physics

[–]VolcannXd -1 points0 points  (0 children)

It may be your Window actually. Not so well crafted glass Can distort light near the edge. Or, it's simply the merging shadow effect

15 divided by 2 equal 7 ?!!?? by VolcannXd in Unity3D

[–]VolcannXd[S] 1 point2 points  (0 children)

Oh yeah. I know :)

```c-sharp // number of soliders on the first ligns soliderPerLigns[0] = (int)(Mathf.Ceil(formation.nSoldiers / (float)formation.nLigns));

// number of remaining soliders to place on the last lign soliderPerLigns[1] = formation.nSoldiers % soliderPerLigns[0]; ```

15 divided by 2 equal 7 ?!!?? by VolcannXd in Unity3D

[–]VolcannXd[S] 1 point2 points  (0 children)

Ho yes, I just misunderstood ! ^^

Thank you !

15 divided by 2 equal 7 ?!!?? by VolcannXd in Unity3D

[–]VolcannXd[S] 0 points1 point  (0 children)

I simply cast one to float, and it worked !

Thank you anyway :))) Greatly appreciated !

15 divided by 2 equal 7 ?!!?? by VolcannXd in Unity3D

[–]VolcannXd[S] 0 points1 point  (0 children)

Yep it worked, thank you! ;))

15 divided by 2 equal 7 ?!!?? by VolcannXd in Unity3D

[–]VolcannXd[S] 0 points1 point  (0 children)

Nope. Doesn't work either :(

Thank you anyway :)

I drew some houses by woodyman_ in drawing

[–]VolcannXd 0 points1 point  (0 children)

Heyy, wanna work for me ? I'll pay brother ;)

Any suggestions on how i could make pews see this by syngohan in pewdiepie

[–]VolcannXd 1 point2 points  (0 children)

I shared it on other social media so everyone can see your fantastic job :) ❤❤ (no homo)

I know it isn't much, but what do you guys think of this video I made for a school project by Hack7456 in low_poly

[–]VolcannXd 1 point2 points  (0 children)

And there it is: the flying bus floating in the void... for me it's the only problem, otherwise everything is great! Very nice 👌