Skip to content

Commit

Permalink
Let developers define custom node name (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
bankbiz authored Apr 19, 2024
1 parent b1bc405 commit b7c6dc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sceneview/src/main/java/io/github/sceneview/node/Node.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ open class Node(

var isHittable: Boolean = true

/**
* ### Define your own custom name
*/
var name: String? = null

/**
* The node can be selected when a touch event happened.
*
Expand Down Expand Up @@ -1028,4 +1033,4 @@ open class SimpleOnNodeGestureListener : GestureDetector.SimpleOnGestureListener
MoveGestureDetector.SimpleOnMoveListener,
RotateGestureDetector.SimpleOnRotateListener,
ScaleGestureDetector.SimpleOnScaleListener,
OnNodeGestureListener
OnNodeGestureListener

0 comments on commit b7c6dc7

Please sign in to comment.