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

Devtools edit scene object values #73

Open
4 tasks done
alvarosabu opened this issue Dec 20, 2023 · 0 comments
Open
4 tasks done

Devtools edit scene object values #73

alvarosabu opened this issue Dec 20, 2023 · 0 comments

Comments

@alvarosabu
Copy link
Member

alvarosabu commented Dec 20, 2023

Description

As a developer using Tres Nuxt devtools I would like to be able to modify object values from the devtools directly and visualize the changes on the scene in real time.

Suggested solution

An action hook is gonna be potentially implemented in Tresjs/tres#478

Introduce an editable functionality on the devtools so values become inputs and attach the event to the change of the value

window.__TRES__DEVTOOLS__.action(
  {
     type: 'tres:edit'
     payload: {
        object: //obj uuid
        property: 'position.x'
        value: 2
     }
  }
)

Alternative

No response

Additional context

No response

Validations

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

No branches or pull requests

1 participant