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

Making handles setters based on field attributes #3

Open
BrunoSilvaFreire opened this issue Jan 29, 2018 · 0 comments
Open

Making handles setters based on field attributes #3

BrunoSilvaFreire opened this issue Jan 29, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@BrunoSilvaFreire
Copy link
Collaborator

For example, adding a PositionHandleAttribute to a field, would draw a position handle to scene for more intuitive editing of the property

    public class MyToken : IToken {
        public ExposedReference<ParticleSystem> System;
        [PositionHandle]
        public Vector3 Position;

        public IEnumerator Execute(CutscenePlayer player) {
            var systemInScene = System.Resolve(player);
            Object.Instantiate(systemInScene, Position, Quaternion.identity);
            yield break;
        }
    }
@BrunoSilvaFreire BrunoSilvaFreire added the enhancement New feature or request label Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant