Writing the changelog now for the update
You can try updating to 3.3.0
wow , yes thats almost what I need, its just coliding with viewport navigation
by user 869976161550217286
by user 869976161550217286
I have used it together with Drag Controls script
by user 869976161550217286
hi Marcel, I was trzing to modifz the code, to work onlz if object is selected to show giymo, still cant work in browser
by user 869976161550217286
using UnityEngine;
namespace Needle.Engine.Components
{
[HelpURL(Constants.DocumentationUrl)]
public class TransformGizmo : MonoBehaviour
{
[Info(“When enabled the transform controls will only show up at runtime when the url parameter "gizmo" is being used”)]
public bool isGizmo = false;
[Info("Hold SHIFT to use snapping values:")]
public uint translationSnap = 1;
[Range(0,360f)]
public float rotationSnapAngle = 15;
public float scaleSnap = .25f;
private void OnMouseDown()
{
// Check if this object has been clicked
if (Input.GetMouseButtonDown(0))
{
// Enable the transform gizmo
UnityEditor.Tools.current = UnityEditor.Tool.Move;
UnityEditor.Tools.current = UnityEditor.Tool.Rotate;
UnityEditor.Tools.current = UnityEditor.Tool.Scale;
}
}
private void OnDrawGizmos()
{
// Only draw the gizmos if the object is selected
if (UnityEditor.Selection.activeGameObject == gameObject)
{
Gizmos.matrix = transform.localToWorldMatrix;
Gizmos.color = Color.red;
Gizmos.DrawLine(Vector3.left, -Vector3.left);
Gizmos.color = Color.blue;
Gizmos.DrawLine(-Vector3.forward, Vector3.forward);
Gizmos.color = Color.green;
Gizmos.DrawLine(-Vector3.up, Vector3.up);
}
}
}
}
by user 869976161550217286
C# code is not exported - you need to edit the typescript code
You can open that with the blue link. When you see a blue link under the component name it means that it has a matching typescript component
oh thats insane for nocoders… connect c# and typescript… no chance I will do it with animator
by user 869976161550217286
but thx anyway
by user 869976161550217286
do you have some component which can toogle objects vibility? I want to attach arrow as child of the chair object. When chair vill be selected I want to toogle visibility of this arrow, on which will be animator and after click on the arrow it will rotate chair… But I need to use some component which is already writen and will work in web browser
by user 869976161550217286
You can just set the GameObject active state (setActive) or the toggle the renderer enabled state from an animation or using e.g. the Button component and assign the UnityEvent
its only way for how to move on with needle
by user 869976161550217286
yes, will try, ok
by user 869976161550217286