forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			958 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			958 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class OnUpdateNode(LnxLogicTreeNode):
 | 
						|
    """Activates the output on every frame.
 | 
						|
 | 
						|
    @option Update: (default) activates the output every frame.
 | 
						|
    @option Late Update: activates the output after all non-late updates are calculated.
 | 
						|
    @option Physics Pre-Update: activates the output before calculating the physics.
 | 
						|
        Only available when using a physics engine."""
 | 
						|
    bl_idname = 'LNOnUpdateNode'
 | 
						|
    bl_label = 'On Update'
 | 
						|
    lnx_version = 1
 | 
						|
    property0: HaxeEnumProperty(
 | 
						|
        'property0',
 | 
						|
        items = [('Update', 'Update', 'Update'),
 | 
						|
                 ('Late Update', 'Late Update', 'Late Update'),
 | 
						|
                 ('Physics Pre-Update', 'Physics Pre-Update', 'Physics Pre-Update')],
 | 
						|
        name='On', default='Update')
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_output('LnxNodeSocketAction', 'Out')
 | 
						|
 | 
						|
    def draw_buttons(self, context, layout):
 | 
						|
        layout.prop(self, 'property0')
 |