Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project specific Preview-templates #3379

Closed
Ronsku opened this issue Oct 12, 2018 · 14 comments
Closed

Project specific Preview-templates #3379

Ronsku opened this issue Oct 12, 2018 · 14 comments
Assignees

Comments

@Ronsku
Copy link

Ronsku commented Oct 12, 2018

Hi,

Something that would really help a lot when working with different projects using Cocos Creator would be to be able to have project specific "preview-templates" folders in the root of the projects, the same way as "build-templates" in project roots override the "resources\static\build-templates" default build templates.

Preview-templates folder is also in Cocos Creator application under "resources\static\preview-templates" the exact same way as "build-templates".

This sounds like a quite small change in the software (?) but would be a HUGE benefit in many cases where you have some project specific requirements for your preview templates. Now these changes can be easily applied only for builds.

I'm sure that the usability of Cocos Creator would go up by miles for many of us struggling to implement custom solutions for our preview templates.

Thank you a lot in advance and I'm always ready to answer any questions you might have.

@sommerper
Copy link

+1

@ColinCollins
Copy link
Contributor

ColinCollins commented Dec 4, 2018

Thx for your suggestion. but I don't know where I can use this and it works.
Would you mind provide the environment for me to understand this feature?
@Ronsku

@Ronsku
Copy link
Author

Ronsku commented Mar 19, 2019

Hi @ColinCollins,

Sorry for the super late response. I did not see your message before this and was about to bump this post.

The problem is that you are not able to have custom "preview-templates" folders / game project, but you can have "build-templates" for a specific project. My request would be to support Project Specific "preview-template" folders

I try to explain by using images:
In your Cocos Creator Application folder you find both "preview-template" and "build-template" folders, in my case: _C:\CocosCreator\resources\static:
image

In my Game Project:
You can have "build-template" folder to Overwrite the default "build-template" folder from Cocos Creator Application folder, but you cannot overwrite the "preview-template" folder by having a custom project specific "preview-template":
image

There are many cases depending on your project where you would like or need to adjust your development environment, preview tool and game wrapper depending on what project you are working on. Currently I have to replace the Cocos Creator Application "preview-template" folder each time i swap projects.

TL/DR: Would it be possible to have project specific "preview-template" folders?

@balazsnemeth
Copy link

👍

@Ronsku
Copy link
Author

Ronsku commented Mar 28, 2019

@ColinCollins Did you understand what we are trying to achieve with the project specific preview-template folder?

@ColinCollins
Copy link
Contributor

ColinCollins commented Apr 1, 2019

Sorry for feedback so late @Ronsku , I just finished my vacation. We have discussed this kind of issue before, but we think that is not a necessary requested, so perhaps we won't add preview-template in a long time.
@jareguo any other suggestions?

@jareguo
Copy link
Contributor

jareguo commented Apr 1, 2019

I think we should add it in 2.2

@Ronsku
Copy link
Author

Ronsku commented Jun 12, 2019

@jareguo @ColinCollins I would really appreciate this. I think this is something that many doesn't realize how strong it would be. I'm also assuming that it would not be a super complicated thing to do (I might be wrong).

If we would get it in 2.2 I would be supper happy!

@mookhf
Copy link

mookhf commented Jun 13, 2019

+1

It is important to have the same result when preview and release for developers.

@jareguo jareguo assigned knoxHuang and unassigned jareguo Jun 18, 2019
@Ronsku
Copy link
Author

Ronsku commented Jul 25, 2019

Why was this closed @jareguo @knoxHuang ? :(

@knoxHuang
Copy link
Contributor

This feature has been implemented and will be in version 2.2, so turn it off

@Ronsku
Copy link
Author

Ronsku commented Sep 13, 2019

This feature has been implemented and will be in version 2.2, so turn it off

Awesome, Thank you! 💯 🎉

@mrspd
Copy link

mrspd commented Mar 16, 2020

What about this feature now?

@jareguo
Copy link
Contributor

jareguo commented Mar 17, 2020

This feature landed in v2.2, see https://docs.cocos.com/creator/manual/en/advanced-topics/custom-preview-template.html

minggo pushed a commit that referenced this issue Feb 10, 2022
* gfx: CommandBuffer.draw accept DrawInfo

* clang-tidy config

* tidy adapt

* enable function name check

* better workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants