public AnimationAnalytics(IAnalyticsStorage analyticsStorage, SkinningEvents eventBus, IAnimationAnalyticsModel model, int instanceId) { m_Model = model; m_AnalyticsStorage = analyticsStorage; m_InstanceId = instanceId; m_EventBus = eventBus; m_EventBus.selectedSpriteChanged.AddListener(OnSelectedSpriteChanged); m_EventBus.skeletonPreviewPoseChanged.AddListener(OnSkeletonPreviewPoseChanged); m_EventBus.skeletonBindPoseChanged.AddListener(OnSkeletonBindPoseChanged); m_EventBus.skeletonTopologyChanged.AddListener(OnSkeletonTopologyChanged); m_EventBus.meshChanged.AddListener(OnMeshChanged); m_EventBus.meshPreviewChanged.AddListener(OnMeshPreviewChanged); m_EventBus.skinningModeChanged.AddListener(OnSkinningModuleModeChanged); m_EventBus.boneSelectionChanged.AddListener(OnBoneSelectionChanged); m_EventBus.boneNameChanged.AddListener(OnBoneNameChanged); m_EventBus.boneDepthChanged.AddListener(OnBoneDepthChanged); m_EventBus.characterPartChanged.AddListener(OnCharacterPartChanged); m_EventBus.toolChanged.AddListener(OnToolChanged); m_EventBus.restoreBindPose.AddListener(OnRestoreBindPose); m_EventBus.copy.AddListener(OnCopy); m_EventBus.paste.AddListener(OnPaste); m_EventBus.shortcut.AddListener(OnShortcut); m_EventBus.boneVisibility.AddListener(OnBoneVisibility); OnToolChanged(model.selectedTool); }
public SpriteOutlineRenderer(ISpriteEditor spriteEditor, SkinningEvents eventSystem) { m_BitMaskMaterial = new Material(Shader.Find("com.unity3d.animation/SpriteBitmask")); m_BitMaskMaterial.hideFlags = HideFlags.HideAndDontSave; m_OutlineMaterial = new Material(Shader.Find("com.unity3d.animation/SpriteOutline")); m_OutlineMaterial.hideFlags = HideFlags.HideAndDontSave; m_SpriteEditor = spriteEditor; m_EventSystem = eventSystem; m_EventSystem.meshPreviewChanged.AddListener(OnMeshPreviewChanged); m_EventSystem.selectedSpriteChanged.AddListener(OnSelectionChanged); CheckDataProviderChanged(); }
public SpriteVisibilityToolController(ISpriteVisibilityToolModel model, SkinningEvents events) { m_Model = model; m_Events = events; m_Events.skinningModeChanged.AddListener(OnViewModeChanged); }
public BoneReparentToolController(IBoneTreeViewModel model, SkinningEvents eventSystem) : base(model, eventSystem) { }
public BoneTreeWidgetController(IBoneTreeViewModel model, SkinningEvents eventSystem) { m_Model = model; m_SkinningEvents = eventSystem; }
public SpriteBoneInflueceToolController(ISpriteBoneInfluenceToolModel model, SkinningEvents events) { m_Events = events; m_Model = model; }