Skip to content

Set Layer of Gizmos, and incorrect reference to Camera.main instead of handleCamera breaks raycast/unwanted offset #18

@beardordie

Description

@beardordie

RuntimeTransformHandle.cs line 143 should use handleCamera, not Camera.main (when using two stacked cameras, the camera may need to be set to the second one. Changing this fixes an issue with a strange offset to the raycast when set to Camera.main instead of the proper camera to raycast from)

Also, please add a serializable Layer field for the runtime-created gizmos. Currently the layer has to be set recursively after runtime instantiation in a rather hacky way to get them to be visible with multiple Camera layer-based culling.

With these two fixed, working great for me.

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