❔ Flip GameObject with Parent
Yo im using an GameObject for my Mele range, and i wanted to do it flip with my parent but my code is not working, i miss some transform. but idk how to use it on my script
i tried this code (i use it on my spriterenderer, i changed the "spriterenderer." but i let it for the example)
after it was not working so i used this:
gameobject.transform.setparent()
but still no
12 Replies
This sounds like an issue for $unity
When it comes to engine internals or how to use unitys classes properly, thats a better source than here - we can help with the C# aspects of your code, but not with unity internals
i realy think the problem is my code, i mean my code is wrong for sure
Well sure, but only someone who knows unity can tell how to fix it
its not an C# issue ?
I'm a very experienced C# dev, but know nothing about unity. I have no idea what
flipx = false
would do on a spriterendererho ok
In c# code if you would flip something with a method how would you do it ?
Depends entirely on what "something" is
like an object
there is no generic answer
you can't flip
object
it has no concept of position or facing
this is why this is a unity questionWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.