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

Be able to copy component values from one Entity to another #216

Open
yaustar opened this issue Nov 10, 2020 · 14 comments
Open

Be able to copy component values from one Entity to another #216

yaustar opened this issue Nov 10, 2020 · 14 comments

Comments

@yaustar
Copy link
Contributor

yaustar commented Nov 10, 2020

Related to #30

It would make iteration of entities a lot quickly, especially around the transforms and UI elements.

@Maksims
Copy link

Maksims commented Nov 10, 2020

I believe generally copying inspector values/blocks would be an amazing addition.
One of most common repetitive task is when artists want to apply Box Projection cubemap values onto multiple materials. The workflow is rather painful.

@yaustar
Copy link
Contributor Author

yaustar commented Apr 9, 2021

An extension to this would be to copy any attribute and paste into another of the same type. Maybe as a right click option on the label?

image

May need some design?

@yaustar
Copy link
Contributor Author

yaustar commented Apr 9, 2021

Related to: #30

@Maksims
Copy link

Maksims commented Apr 9, 2021

Context menu on the label - seem reasonable and easy to use.
Also, it can show what type of value you are copying.
And would enable/disable "Paste" button based on copied data.

Ensure copy/paste uses native system clipboard, that way copying values between projects would be a possibility.
If it could be JSON.stringify/parse based, with validation - that would be even better, as it would allow you to simply copy vec3, and in the clipboard, it would be [ 0, 1, 2 ], which can be pasted back, also used together with code.

There is already information about what type of a field it is.
Copying would be of value of course, with nothing to do with UI (like in select fields).

Here are some mockups:

vec3

string

@alamboley
Copy link

Coming from a Unity background, I think we should copy position/rotation/scale directly. Maybe individual one like your screenshots (the more options the better), but having options in inspector is more readable:
index

@yaustar
Copy link
Contributor Author

yaustar commented Apr 11, 2021

Side note: I would also like to see the reset option as a context option

@yaustar
Copy link
Contributor Author

yaustar commented Sep 14, 2021

Partial feature release in v1.19.11 where you can copy and paste components from/to entities

@Maksims
Copy link

Maksims commented Sep 15, 2021

Would be good to replace the Settings Cog icon, with the simple 3 Dots button commonly used in this context, as this is not a setting, but the additional menu.

@willeastcott
Copy link
Contributor

Or a hamburger? 🍔

@yaustar
Copy link
Contributor Author

yaustar commented Sep 15, 2021

We could use the down arrow icon that we use else where:
image

I don' t think we use either the hamburger or 3 dots in the Editor UI

@Maksims
Copy link

Maksims commented Sep 15, 2021

Another option would be to allow the context menu on the left side of inspector panel, on labels.
This would be the same for labels on fields like vec3, or other properties, and on components as well.

@willeastcott willeastcott changed the title Be able to copy components and/or component values from one Entity to another Be able to copy component values from one Entity to another Feb 25, 2023
@yaustar
Copy link
Contributor Author

yaustar commented Feb 27, 2023

An example from a customer that I just spoke to wanted to copy a JSON array entry from one script to another

(ie https://developer.playcanvas.com/en/user-manual/scripting/script-attributes/#json-attribute)

And also with material properties/channels.
image

@Mann1ng
Copy link

Mann1ng commented Jan 3, 2024

Hey chaps, just wondering if this feature is still on the radar?

Copying an entity's position and rotation onto another entity seems to be a basic feature which I often miss during development. Currently we are copying 6 floats across per entity for this result which is very frictional. Also (while I'm at it 😉 ) some form of Unity's 'move entity into camera view' would be amazing.

All that said, hope you are taking some well earned time off over the festive season, and many thanks for your exceptional talent and support during 2023. 🥇 ❤️

@willeastcott
Copy link
Contributor

@Mann1ng Thanks for bumping this - it's not currently on our dev schedule but I'll keep it in mind for the next round of roadmap updates.

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

No branches or pull requests

5 participants