Skip to content

Use set_SameJointConstraints to change the orientation of the spotlights #2

@originalnicodr

Description

@originalnicodr

Quoting what I have been told when asking around about this:

You can probably move it by parenting the light's transform to the camera GameObject, then unparenting when finished moving it. When you change a transform's parent, you should call set_SameJointConstraints on the parent transform. Not to change it but just to call it, because calling it seems to do something that completes the parent-child relationship. Otherwise often the child wont move when you set its transform

Maybe this repo would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions