public void Init(Transform targetTransform, ManipulatorSettings manipulationSettings, float minScaleFactor, float maxScaleFactor) { HostTransform = targetTransform; manipulationSettings = m_Settings; m_MinScaleFactor = minScaleFactor; m_MaxScaleFactor = maxScaleFactor; m_Renderer = GetComponent <Renderer>(); }
public void Init(Transform targetTransform, ManipulatorSettings settings) { HostTransform = targetTransform; m_Settings = settings; m_Renderer = GetComponent <Renderer>(); RenderingColor = settings.BoxDefaultColor; }
public void Init(Transform target, ManipulatorSettings manipulationSettings) { RotationMode = RotationModeEnum.LockObjectRotation; IsDraggingEnabled = true; m_Settings = manipulationSettings; m_BoundaryController = target.GetComponent <HologramManipulator>(); }
public ScatterPlaceManipulator() { ManipulatorContext = new ManipulatorSettings(); ManipulatorInfo = new ManipulatorInfo( "Scatter Placer".Localize(), "Scatter Placer manipulator".Localize(), Resources.ScatterPlace, Keys.None); }
public ScatterPlaceManipulator() { ManipulatorContext = new ManipulatorSettings(); ManipulatorInfo = new ManipulatorInfo( "Scatter Placer".Localize(), "Scatter Placer manipulator".Localize(), Resources.ScatterPlace, Keys.None); }