How to change the pivot point of an object in unity

Опубликовано: 04 Октябрь 2024
на канале: Abolfazl Tanha - Game & XR maker
588
17

How to change the pivot point of an object (an object that has multiple children or a single object with the wrong pivot point). This system works in the editor if you want to change your model's pivot point. Also, it works in runtime if you import a new model to your scene and this model has to be fixed.
This system works on any platform without any limitations.
-----------------------------------------------------------------------------------------------
Intro: 0:00
Review model: 00:23
Solution introduction: 02:16
Scripting: 05:32
Variables: 06:01
Main function: 07:31
Runtime Test 1: 12:11
Change pivot permanently: 13:18
Pivot of one object: 15:01
Test 2: 17:04
Finish: 19:38
-----------------------------------------------------------------------------------------------
Playlist:    • Short tutorials  
-----------------------------------------------------------------------------------------------
You have access to the source code on this page:
http://abolfazltanha.com/Source-codes...
-----------------------------------------------------------------------------------------------
My website: http://abolfazltanha.com/
-----------------------------------------------------------------------------------------------
#game #videogame #debugging #coding #unitydev #pivot #pivotpoint #model