Jump to content

when add Components to Nodes


photo

Recommended Posts

Posted

In example,  A component is assigned only by just  assigning an property to a node.

image.png.13c2c6916fa666bec706605bfa53e743.png

then if I want assign just only "MyComponentProperty" property, what should I  do?

Posted

It's unclear to me where's the problem

2 hours ago, dongju.jeong said:

if I want assign just only "MyComponentProperty" property, what should I  do?

If you want to assign a property then use a code sample from the documentation (the one on the attached screenshot). You also need to register a component: https://developer.unigine.com/en/docs/2.7.2/code/usage/using_component_system/index#register_component

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

If I assign a "A" property to a node, the component system will work on that node.

But if I want to assign the "A" property to another node and I do not want a component system this time, should I create another property with the same content?

Posted

Hi dongju.jeong,

Components are added by the Component System based on properties assigned no nodes. So, in your case, you'll have to create a "B" property with the same content.

Thank you!

×
×
  • Create New...