How to disable a constraint programmatically?

前端 未结 1 1442
孤街浪徒
孤街浪徒 2020-12-21 10:57

How to disable a constraint programmatically?

I have two constraints, that the priority of one depends for the other. As far as I know the constraints priority can’t

相关标签:
1条回答
  • 2020-12-21 11:07

    The constraints have a boolean property called active so if you want to disable a constraint you can easily call it:

    constraint_A.active = false
    
    0 讨论(0)
提交回复
热议问题