--ui挂接模型处理
|
|
UIModelClass = UIModelClass or BaseClass(UIModelCommon)
|
|
--当前正在使用的rendertexture列表
|
|
|
|
function UIModelClass:__init(go,parent,model_data)
|
|
self.model_type = UIModelCommon.ModelType.Model
|
|
|
|
model_data.raycast_size = Vector2(0,0) --直接挂模型,不给拖拽旋转
|
|
|
|
self.model_data = model_data
|
|
self.layer_name = self.model_data.layer_name or "UI"
|
|
|
|
self:SetData(parent,model_data)
|
|
self:AddEvents()
|
|
end
|
|
|
|
function UIModelClass:__delete()
|
|
|
|
end
|
|
|
|
|
|
function UIModelClass:SetData(parent,model_data)
|
|
UIModelCommon.LoadRole(self, model_data)
|
|
end
|
|
|
|
function UIBackModelClass:AddEvents()
|
|
UIModelCommon.AddEvents(self)
|
|
end
|