Search Unity

Prespective

Discussion in 'External Tools' started by Guido_van_Gageldonk, Nov 1, 2019.

  1. Guido_van_Gageldonk

    Guido_van_Gageldonk

    Joined:
    Nov 1, 2019
    Posts:
    1
    All your questions regarding Prespective can be posted here!
    Prespective can help you build Digital Twins. View our Unite presentation to get a glimpse of the possibilities.
    Coupling in PLC's like Siemens, Beckhoff, MQTT, OPC...
    A kinematic system and tools for data preperation.
    Look at www.prespective-software.com for more information
    Or our youtube channel


    We will look at this thread at a bi-daily basis.

    Here you find documentation:
    https://unit040.atlassian.net/wiki/spaces/PUD/pages/6979785/Feature+Overview
    Track known issues at:
    https://unit040.atlassian.net/wiki/spaces/KBI/pages/7013494/Known+issues+bugs
    For issue reporting please go to:
    https://prespective-software.com/support/
     
    Last edited: Dec 13, 2019
    Unit040Guest1 likes this.
  2. Kimalakaha

    Kimalakaha

    Joined:
    Dec 9, 2019
    Posts:
    2
    Hello,

    I'm trying to toggle the kinematic controller with a script:
    Code (CSharp):
    1. GetComponent<KinematicsController>().enabled = !GetComponent<KinematicsController>().enabled;
    This works for regular Unity objects, but not it tells me that type or namespace "KinematicsController" cannot be found.

    Is what I'm trying to accomplish even possible and if so, how can I fix this?
    Alternative solutions are also appreciated.

    Kind Regards,

    Kima
     
  3. Unit040

    Unit040

    Joined:
    Sep 15, 2014
    Posts:
    5
    Hi Kimalakaha,

    The KinematisController is within the "u040.prespective.prepair.kinematics" namespace.
    If you use "using u040.prespective.prepair.kinematics;" at the top of your script, the kinematicsController should be found, or you can specifictly target the "u040.prespective.prepair.kinematics.KinematicsController" within your script.

    Could you let me know if this fixes your issue?

    Kind Regards,
    Prespective Support
     
  4. Kimalakaha

    Kimalakaha

    Joined:
    Dec 9, 2019
    Posts:
    2
    Thank you! This fixed my problem! I wasn't aware about the namespace.
     
unityunity