Adam's Lair Forum

game development and casual madness
It is currently 2019/11/12, 20:35

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Editing Prefabs
PostPosted: 2016/02/06, 13:35 
Newbie
Newbie

Joined: 2015/04/26, 21:43
Posts: 6
Location: Sydney, Australia
Role: Hobbyist
Currently to edit a prefab I have to drag it into the scene (causing a linked game object to be added the scene view) after which I can edit the game object and apply changes through the prefab link.

I was wondering: Is this the best workflow for editing prefabs or is there some trick(s) I'm missing?

Thanks


Top
 Profile  
 
 Post subject: Re: Editing Prefabs
PostPosted: 2016/02/06, 13:45 
Forum Adept
Forum Adept
User avatar

Joined: 2015/03/15, 02:49
Posts: 354
Location: Out there
Role: Hobbyist
I just edit the gameobject and drag it again to the prefab.
By the way, this isn't a programming question. :p

_________________
Hello there! Nice to meet you!
I have github. Apologies in advance for bad coding practices.


Top
 Profile  
 
 Post subject: Re: Editing Prefabs
PostPosted: 2016/02/06, 17:38 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
Quote:
I was wondering: Is this the best workflow for editing prefabs or is there some trick(s) I'm missing?

Nope, I usually do it this way as well.

eyeliner wrote:
By the way, this isn't a programming question. :p

Indeed ^^ Moving this.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
 Post subject: Re: Editing Prefabs
PostPosted: 2016/02/07, 00:00 
Newbie
Newbie

Joined: 2015/04/26, 21:43
Posts: 6
Location: Sydney, Australia
Role: Hobbyist
Any compelling reason to keep this work flow? Could I build a editor plugin that would allow direct editing of prefabs?

:]


Top
 Profile  
 
 Post subject: Re: Editing Prefabs
PostPosted: 2016/02/07, 00:17 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
toyners wrote:
Any compelling reason to keep this work flow? Could I build a editor plugin that would allow direct editing of prefabs?

:]


Yep, you probably could. ^^

I think it should be enough to implement a custom PropertyEditor that is used for Prefabs specifically and, unlike the rather generic ResourcePropertyEditor, would allow you to edit the GameObject inside directly. This wouldn't cover all cases though, since there would be no way to access child GameObjects of the Prefab's root GameObject. Anyway, this is all just a quick thought - results may vary :D

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group