Forum Discussion

InaCentaur's avatar
InaCentaur
Start Member
7 months ago

sanity test, why isn't this console log printing?

import { PropTypes } from 'horizon/core';
import * as hz from 'horizon/core';
//import { Component, Entity, Player, Vec3, CodeBlockEvents } from 'horizon/core';

class Test extends hz.Component<typeof Test> {
  static propsDefinition = {
    destination: { type: PropTypes.Entity }, // The entity that represents the destination
    triggerEntity: { type: PropTypes.Entity }, // The entity that triggers the teleportation
  };

  start() {
    console.log("TeleportComponent TEST started");
 
   
  }
}
 

hz.Component.register(Test);

4 Replies

    • InaCentaur's avatar
      InaCentaur
      Start Member

      it is, of course! 

      would there be anything that can prevent it from console logging when it is attached to an entity in hierarchy?? 

  • I tried it on my end, and it seems right. Is the simulation running in the world? 

    • InaCentaur's avatar
      InaCentaur
      Start Member

      ridic, i fell asleep, restarted my computer, and it suddenly started to work.