浏览代码

add getGroup(name:String)

bstouls 9 年之前
父节点
当前提交
bcbbe54c84
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      h3d/parts/GpuParticles.hx

+ 7 - 0
h3d/parts/GpuParticles.hx

@@ -315,6 +315,13 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		if( materials.length == 0 ) material = null;
 	}
 
+	public function getGroup( name : String ) {
+		for( g in groups )
+			if( g.name == name )
+				return g;
+		return null;
+	}
+
 	public inline function getGroups() {
 		return groups.iterator();
 	}