mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
Create knot on link double click
This commit is contained in:
21
js/entity/objects/KnotEntity.js
Normal file
21
js/entity/objects/KnotEntity.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import ObjectEntity from "../ObjectEntity"
|
||||
import ObjectReferenceEntity from "../ObjectReferenceEntity"
|
||||
import PinEntity from "../PinEntity"
|
||||
|
||||
export default class KnotEntity extends ObjectEntity {
|
||||
|
||||
constructor(options = {}) {
|
||||
super(options)
|
||||
this.Class = new ObjectReferenceEntity("/Script/BlueprintGraph.K2Node_Knot")
|
||||
this.Name = "K2Node_Knot"
|
||||
this.CustomProperties = [
|
||||
new PinEntity({
|
||||
PinName: "InputPin",
|
||||
}),
|
||||
new PinEntity({
|
||||
PinName: "OutputPin",
|
||||
Direction: "EGPD_Output",
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user